-theme=None
-try:
- from myslice.configengine import ConfigEngine
- configEngine = ConfigEngine()
- if configEngine.myslice.theme :
- theme = configEngine.myslice.theme
-except:
- pass
-
-# find out HTTPROOT, which is different from ROOT
-# when deployed from a package
-# this code is run by collectstatic too, so we cannot
-# assume we have ./static present already
-HTTPROOT="/var/myslice-f4f"
-# the place to store local data, like e.g. the sqlite db
-DATAROOT="/var/unfold"
+if config.myslice.theme :
+ theme = config.myslice.theme
+else :
+ theme = None
+
+# HTTPROOT
+if config.myslice.httproot :
+ HTTPROOT = config.myslice.httproot
+else :
+ HTTPROOT = "/var/myslice-f4f"
+
+# DATAROOT
+if config.myslice.httproot :
+ DATAROOT = config.myslice.httproot
+else :
+ DATAROOT = "/var/unfold"
+