# Path: pystil/context.py
# MESSAGE_QUEUE = Queue()
# class Tracking(Thread):
# class Pystil(Application):
# class Hdr(RequestHandler):
# class url(object):
#     def __init__(self, db, log, *args, **kwargs):
#     def run(self):
#     def listen(self, *args, **kwargs):
#     def log(self):
#     def db(self):
#     def log(self):
#     def prepare(self):
#     def on_finish(self):
#     def __init__(self, url):
#     def __call__(self, cls):


from tornado.ioloop import IOLoop
from tornado.options import options, parse_command_line
from subprocess import call
from pystil.context import pystil
import pystil
import pystil.routes
import pystil.charts
import pystil.websocket
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011-2013 by Florian Mounier, Kozea
# This file is part of pystil, licensed under a 3-clause BSD license.


parse_command_line()


pystil.listen(options.port, xheaders=True)
if options.debug:
    try:
        call("wsreload --url 'http://l:1789/*'", shell=True)
    except:

# Path: pystil/context.py
# MESSAGE_QUEUE = Queue()
# class Tracking(Thread):
# class Pystil(Application):
# class Hdr(RequestHandler):
# class url(object):
#     def __init__(self, db, log, *args, **kwargs):
#     def run(self):
#     def listen(self, *args, **kwargs):
#     def log(self):
#     def db(self):
#     def log(self):
#     def prepare(self):
#     def on_finish(self):
#     def __init__(self, url):
#     def __call__(self, cls):


# Path: pystil2.py
from tornado.ioloop import IOLoop
from tornado.options import options, parse_command_line
from subprocess import call
from pystil.context import pystil
import pystil
import pystil.routes
import pystil.charts
import pystil.websocket

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011-2013 by Florian Mounier, Kozea
# This file is part of pystil, licensed under a 3-clause BSD license.


parse_command_line()


pystil.listen(options.port, xheaders=True)
if options.debug:
    try:
        call("wsreload --url 'http://l:1789/*'", shell=True)
    except:

        pass