changeset 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 565ffdd98d68
children 3abd31885f0f
files main.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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