Mercurial > parpg-source
comparison main.py @ 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 | 94196a3e9c07 |
children |
comparison
equal
deleted
inserted
replaced
185:f4994e080d87 | 186:c41299c7e833 |
---|---|
44 | 44 |
45 from fife.extensions.fife_settings import Setting | 45 from fife.extensions.fife_settings import Setting |
46 | 46 |
47 settings = Setting(settings_file="settings.xml") | 47 settings = Setting(settings_file="settings.xml") |
48 | 48 |
49 settings.set("parpg","DataPath", abspath(settings.get("parpg","DataPath"))) | 49 data_dir = abspath(settings.get("parpg","DataPath")) |
50 | 50 settings.set("parpg", "DataPath", data_dir) |
51 settings.set("FIFE", "WindowIcon", data_dir + "/" + settings.get("FIFE", "WindowIcon")) | |
52 settings.set("FIFE", "Font", data_dir + "/" + settings.get("FIFE", "Font")) | |
51 | 53 |
52 from parpg.application import PARPGApplication | 54 from parpg.application import PARPGApplication |
53 from parpg.common import utils | 55 from parpg.common import utils |
54 | 56 |
55 # enable psyco if available and in settings file | 57 # enable psyco if available and in settings file |