diff main.py @ 172:5d47ad053aef

Fixed code that was still using the (removed) parpg settings module.
author Beliar <KarstenBock@gmx.net>
date Sun, 26 Feb 2012 01:58:36 +0100
parents b3b82c2aebee
children 94196a3e9c07
line wrap: on
line diff
--- a/main.py	Sun Feb 26 01:24:33 2012 +0100
+++ b/main.py	Sun Feb 26 01:58:36 2012 +0100
@@ -35,13 +35,13 @@
     
     try:
         old_path = sys.path
-        sys.path = [settings.parpg.FifePath]
+        sys.path = [settings.get("parpg", "FifePath")]
         import fife
     except AttributeError:
-        logger.warning('[parpg] section has no FifePath option')
+        logger.warning('parpg section has no FifePath option')
     except ImportError:
         logger.critical("Could not import fife module. Please install fife or add "
-                        "'FifePath' to the [parpg] section of your settings file")
+                        "'FifePath' to the parpg section of your settings file")
         sys.exit(1)
     finally:
         sys.path = old_path