comparison clients/rio_de_hola/run.py @ 273:815354ba295e

* Added function to fife_utils: getUserDataDirectory. Returns the proper path to save setting and data files depending on OS. * Made rio_de_hola save its settings in the proper location.
author cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 16 Jun 2009 14:24:26 +0000
parents bb9902910067
children ff8bc835260c
comparison
equal deleted inserted replaced
272:b04a2faf7d86 273:815354ba295e
9 9
10 _paths = ('../../engine/swigwrappers/python', '../../engine/extensions') 10 _paths = ('../../engine/swigwrappers/python', '../../engine/extensions')
11 for p in _paths: 11 for p in _paths:
12 if p not in sys.path: 12 if p not in sys.path:
13 sys.path.append(_jp(p)) 13 sys.path.append(_jp(p))
14
15 if not os.path.exists('settings.xml'):
16 shutil.copyfile('settings-dist.xml', 'settings.xml')
17 14
18 import fife_compat 15 import fife_compat
19 import fife, fifelog 16 import fife, fifelog
20 from scripts import world 17 from scripts import world
21 from scripts.common import eventlistenerbase 18 from scripts.common import eventlistenerbase