dabo Commit
Revision 5206
Date: 2009-05-07 14:19:28 -0700 (Thu, 07 May 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5206
Changed:
U trunk/ide/wizards/AppWizard/AppWizard.py
Log:
Fixed an edge-case bug identified by CarlFK back in March.
Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py 2009-05-06 16:39:02 UTC (rev
5205)
+++ trunk/ide/wizards/AppWizard/AppWizard.py 2009-05-07 21:19:28 UTC (rev
5206)
@@ -517,6 +517,11 @@
os.makedirs(directory)
else:
return False
+ else:
+ if not os.path.isdir(directory):
+ dabo.ui.stop(_("The target of '%s' is a
pre-existing file, not a directory. "
+ "Please pick a
different directory name.") % directory)
+ return False
self.Form.outputDirectory = directory
app.setUserSetting("defaultLocation", appdir)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]