dabo Commit
Revision 3676
Date: 2007-11-14 06:09:52 -0800 (Wed, 14 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3676
Changed:
U trunk/ide/wizards/AppWizard/AppWizard.py
Log:
This fixes the problem with AppWizard not being able to find its spec files
when it is being run from a directory other than the one that AppWizard.py is
in. Ticket #1109.
Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py 2007-11-14 12:54:03 UTC (rev
3675)
+++ trunk/ide/wizards/AppWizard/AppWizard.py 2007-11-14 14:09:52 UTC (rev
3676)
@@ -557,14 +557,17 @@
class AppWizard(Wizard):
- def __init__(self, parent=None, *args, **kwargs):
+ def __init__(self, parent=None, defaultDirectory=None, *args, **kwargs):
super(AppWizard, self).__init__(parent=parent, *args, **kwargs)
self.Caption = _("Dabo Application Wizard")
self.Picture = "daboIcon064"
self.Size = (520, 560)
- self.wizDir = sys.path[0]
+ if defaultDirectory is None:
+ self.wizDir = sys.path[0]
+ else:
+ self.wizDir = defaultDirectory
self.tableDict = {}
self.selectedTables = []
self.outputDirectory = ""
@@ -1169,8 +1172,10 @@
app.setAppInfo("appShortName", "AppWizard")
app.MainFormClass = None
+ # Need to capture this before app.setup() is called.
+ defdir = sys.path[0]
app.setup()
- wiz = AppWizard(None)
+ wiz = AppWizard(None, defaultDirectory=defdir)
# No need to start the app; when the wizard exits, so will the app.
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]