daboide Commit Revision 420 Date: 2006-01-31 16:38:03 -0800 (Tue, 31 Jan 2006) Author: ed
Changed: U trunk/DesignerFormMixin.py
Log: Fixed a bug that happened if you didn't save a file after clicking 'Run'
Diff: Modified: trunk/DesignerFormMixin.py =================================================================== --- trunk/DesignerFormMixin.py 2006-02-01 00:27:05 UTC (rev 419) +++ trunk/DesignerFormMixin.py 2006-02-01 00:38:03 UTC (rev 420) @@ -191,6 +191,9 @@ def onRunDesign(self, evt): # First, make sure that it's been saved self.onSaveDesign(None) + if not self._classFile: + # Nothing was saved + return pth = os.path.split(self._classFile)[0] syspth = sys.path if pth not in sys.path:
©2006 Ed Leafe |