comparison orpg/main.py @ 5:5a2c95067daf grumpy-goblin

This update causes the software to remove approot.py and approot.pyc These files will be created the next time you run but if they remain they may call an old directory.
author sirebral
date Wed, 15 Jul 2009 03:59:50 -0500
parents c0da99091e1d
children 668694b93f6c
comparison
equal deleted inserted replaced
4:c0da99091e1d 5:5a2c95067daf
1248 self.frame.post_show_init() 1248 self.frame.post_show_init()
1249 wx.CallAfter(self.splash.Close) 1249 wx.CallAfter(self.splash.Close)
1250 return True 1250 return True
1251 1251
1252 def OnExit(self): 1252 def OnExit(self):
1253 #Clean up approot files on exit.
1254 self.log.log("Removing approot files\n", ORPG_DEBUG)
1255 os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.py')
1256 os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.pyc')
1257 #Exit
1253 self.log.log("Main Application Exit\n\n", ORPG_DEBUG) 1258 self.log.log("Main Application Exit\n\n", ORPG_DEBUG)