Mercurial > traipse_dev
diff 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 |
line wrap: on
line diff
--- a/orpg/main.py Wed Jul 15 03:59:50 2009 -0500 +++ b/orpg/main.py Wed Jul 15 04:06:37 2009 -0500 @@ -1252,7 +1252,10 @@ def OnExit(self): #Clean up approot files on exit. self.log.log("Removing approot files\n", ORPG_DEBUG) - os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.py') - os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.pyc') + try: + os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.py') + os.remove(os.environ["OPENRPG_BASE"] + os.sep + 'orpg' + os.sep + 'dirpath' + os.sep + 'approot.pyc') + except: + pass #Exit self.log.log("Main Application Exit\n\n", ORPG_DEBUG)