changeset 186:c41299c7e833

Fixing an error with the path of the font and window icon.
author Beliar <KarstenBock@gmx.net>
date Tue, 20 Mar 2012 14:31:02 +0100
parents f4994e080d87
children ab6a0fd1668a
files main.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main.py	Fri Mar 16 07:16:07 2012 +0100
+++ b/main.py	Tue Mar 20 14:31:02 2012 +0100
@@ -46,8 +46,10 @@
 
     settings = Setting(settings_file="settings.xml")
     
-    settings.set("parpg","DataPath", abspath(settings.get("parpg","DataPath")))
-    
+    data_dir =  abspath(settings.get("parpg","DataPath"))
+    settings.set("parpg", "DataPath", data_dir)
+    settings.set("FIFE", "WindowIcon", data_dir + "/" + settings.get("FIFE", "WindowIcon"))
+    settings.set("FIFE", "Font", data_dir + "/" + settings.get("FIFE", "Font"))
    
     from parpg.application import PARPGApplication
     from parpg.common import utils