changeset 545:bc7e3c3122d7

The save xml files are now deleted correctly on the Mac platform.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 03 Jun 2010 02:40:05 +0000
parents c9bdf145069f
children 8fee2d2286e9
files demos/rpg/scripts/gamecontroller.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/demos/rpg/scripts/gamecontroller.py	Thu Jun 03 02:36:09 2010 +0000
+++ b/demos/rpg/scripts/gamecontroller.py	Thu Jun 03 02:40:05 2010 +0000
@@ -258,7 +258,7 @@
 	def newGame(self):
 		self._guicontroller.hideMainMenu()
 		
-		for filename in glob.glob("saves\*.xml"):
+		for filename in glob.glob(os.path.join("saves" , "*.xml")):
 			os.remove(filename)
 		
 		mapname = self._settings.get("RPG", "TownMapFile", "town")