diff gamemodel.py @ 170:0296f5f74a0f

Fixed saving and loading that broke with changing of the settings module.
author Beliar <KarstenBock@gmx.net>
date Sat, 25 Feb 2012 22:05:39 +0100
parents b3b82c2aebee
children ab6a0fd1668a
line wrap: on
line diff
--- a/gamemodel.py	Sat Feb 25 00:21:28 2012 +0100
+++ b/gamemodel.py	Sat Feb 25 22:05:39 2012 +0100
@@ -213,12 +213,12 @@
            @type filename: string
            @param filename: the name of the file (including path) to load from
            @return: None"""
-        fname = '/'.join([path, filename])
+        fname = os.path.join(path, filename)
 
         try:
             load_file = open(fname, 'r')
         except(IOError):
-            sys.stderr.write("Error: Can't find save game file\n")
+            sys.stderr.write("Error: Can't find save game file '" + fname + "'\n")
             return        
         self.deleteMaps()
         self.clearAgents()