summaryrefslogtreecommitdiffstats
path: root/module/web/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/settings.py')
-rw-r--r--module/web/settings.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/module/web/settings.py b/module/web/settings.py
index 8f9425198..7380541e6 100644
--- a/module/web/settings.py
+++ b/module/web/settings.py
@@ -15,9 +15,17 @@ PROJECT_DIR = os.path.dirname(__file__)
PYLOAD_DIR = os.path.join(PROJECT_DIR,"..","..")
+sys.path.append(PYLOAD_DIR)
+
+
sys.path.append(os.path.join(PYLOAD_DIR, "module"))
-from XMLConfigParser import XMLConfigParser
-config = XMLConfigParser(os.path.join(PYLOAD_DIR,"module","config","core.xml"))
+
+import InitHomeDir
+sys.path.append(pypath)
+
+
+from module.ConfigParser import ConfigParser
+config = ConfigParser()
#DEBUG = config.get("general","debug")
@@ -35,8 +43,8 @@ except:
server_url = "http%s://%s:%s@%s:%s/" % (
ssl,
- config.get("remote", "username"),
- config.get("remote", "password"),
+ config.username,
+ config.password,
config.get("remote", "listenaddr"),
config.get("remote", "port")
)