diff main.py @ 167:b3b82c2aebee

Using fife settings module again instead of our own.
author Beliar <KarstenBock@gmx.net>
date Mon, 20 Feb 2012 16:50:10 +0100
parents 86656563555e
children 5d47ad053aef
line wrap: on
line diff
--- a/main.py	Thu Jan 12 18:42:48 2012 +0100
+++ b/main.py	Mon Feb 20 16:50:10 2012 +0100
@@ -15,13 +15,13 @@
 import sys
 from os.path import abspath
 
-from parpg.settings import Settings
+from fife.extensions.fife_settings import Setting
 
       
 def main(args, opts):
-    settings = Settings(*args)
+    settings = Setting(settings_file="settings.xml")
     
-    settings.parpg.DataPath = abspath(settings.parpg.DataPath)
+    settings.set("parpg","DataPath", abspath(settings.get("parpg","DataPath")))
     
     levels = {'debug': logging.DEBUG,
               'info': logging.INFO,
@@ -57,7 +57,7 @@
         logger.warning('Psyco Acceleration unavailable')
         psyco_available = False
     
-    if settings.fife.UsePsyco:
+    if settings.get("fife", "UsePsyco"):
         if psyco_available:
             psyco.full()
             logger.info('Psyco Acceleration enabled')