comparison orpg/main.py @ 6:668694b93f6c grumpy-goblin

Changed it to a try pass, in case the .pyc was not created. Updated Build Number.
author sirebral
date Wed, 15 Jul 2009 04:06:37 -0500
parents 5a2c95067daf
children 2b9e766f9dee
comparison
equal deleted inserted replaced
5:5a2c95067daf 6:668694b93f6c
1250 return True 1250 return True
1251 1251
1252 def OnExit(self): 1252 def OnExit(self):
1253 #Clean up approot files on exit. 1253 #Clean up approot files on exit.
1254 self.log.log("Removing approot files\n", ORPG_DEBUG) 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') 1255 try:
1256 os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.pyc') 1256 os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.py')
1257 os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.pyc')
1258 except:
1259 pass
1257 #Exit 1260 #Exit
1258 self.log.log("Main Application Exit\n\n", ORPG_DEBUG) 1261 self.log.log("Main Application Exit\n\n", ORPG_DEBUG)