import tornado.options
import tornado.web
-from webapp import backend
+import backend
BASEDIR = os.path.dirname(__file__)
-# Enable logging
-tornado.options.enable_pretty_logging()
tornado.options.parse_command_line()
def word_wrap(s, width=45):
line = "kernel -n img %s" % config.image1
if line.endswith(".iso"):
line += " iso"
+ if config.args:
+ line += " %s" % config.args
lines.append(line)
if config.image2:
settings = dict(
debug = True,
gzip = True,
- static_path = os.path.join(BASEDIR, "static/netboot"),
- template_path = os.path.join(BASEDIR, "templates/netboot"),
+ static_path = os.path.join(BASEDIR, "static"),
+ template_path = os.path.join(BASEDIR, "templates"),
)
tornado.web.Application.__init__(self, **settings)