'|configsdir=$(configsdir)|' \
'|bindir=$(bindir)|' \
'|datadir=$(datadir)|' \
- '|localedir=$(localedir)|'
+ '|localedir=$(localedir)|' \
+ '|templatesdir=$(templatesdir)|' \
+ '|staticdir=$(staticdir)|'
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
PACKAGE_NAME = "@PACKAGE_NAME@"
-CONFIGSDIR = "@configsdir@"
-DATADIR = "@datadir@"
-LOCALEDIR = "@localedir@"
+CONFIGSDIR = "@configsdir@"
+DATADIR = "@datadir@"
+LOCALEDIR = "@localedir@"
+TEMPLATESDIR = "@templatesdir@"
+STATICDIR = "@staticdir@"
PAKFIRE_DIR = "/pakfire"
PACKAGES_DIR = os.path.join(PAKFIRE_DIR, "packages")
from . import handlers
-BASEDIR = os.path.join(os.path.dirname(__file__), "..", "data")
-
# Read command line
tornado.options.define("debug", default=False, help="Run in debug mode", type=bool)
tornado.options.parse_command_line()
from .handlers import *
from .ui_modules import *
-BASEDIR = os.path.join(os.path.dirname(__file__), "..", "data")
-
# Enable logging
tornado.options.define("debug", default=False, help="Run in debug mode", type=bool)
tornado.options.parse_command_line()
debug = tornado.options.options.debug,
gzip = True,
login_url = "/login",
- template_path = os.path.join(BASEDIR, "templates"),
+ template_path = TEMPLATESDIR,
+ static_path = STATICDIR,
ui_modules = {
"Text" : TextModule,
"Modal" : ModalModule,
tornado.web.Application.__init__(self, **settings)
- self.settings["static_path"] = static_path = os.path.join(BASEDIR, "static")
+ self.settings["static_path"] = static_path = STATICDIR
static_handlers = [
(r"/static/(.*)", tornado.web.StaticFileHandler, dict(path = static_path)),
(r"/(favicon\.ico)", tornado.web.StaticFileHandler, dict(path = static_path)),