# HG changeset patch # User vtchill@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1246844134 0 # Node ID ff8bc835260c1ac36de702860f6d886781cbb032 # Parent 07709bffab8f5fe915adffc1a82cfc15edef552e Changed the location where rio_de_hola client puts the savefile.xml by using the getUserDataDirectory utility function to fix the permission denied error seen by LinuxDonald. diff -r 07709bffab8f -r ff8bc835260c clients/rio_de_hola/run.py --- a/clients/rio_de_hola/run.py Sun Jul 05 19:11:53 2009 +0000 +++ b/clients/rio_de_hola/run.py Mon Jul 06 01:35:34 2009 +0000 @@ -20,6 +20,7 @@ import pychan import pychan.widgets as widgets from settings import Setting +from fife_utils import getUserDataDirectory TDS = Setting() @@ -158,7 +159,16 @@ def _pump(self): if self.listener.quit: self.breakRequested = True - self.world.save('maps/savefile.xml') + + # get the correct directory to save the map file to + mapSaveDir = getUserDataDirectory("fife", "rio_de_hola") + "/maps" + + # create the directory structure if it does not exist + if not os.path.isdir(mapSaveDir): + os.makedirs(mapSaveDir) + + # save map file to directory + self.world.save(mapSaveDir + "/savefile.xml") else: self.world.pump()