dabo Commit
Revision 5665
Date: 2010-02-08 09:56:09 -0800 (Mon, 08 Feb 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5665

Changed:
U   trunk/ide/wizards/AppWizard/AppWizard.py

Log:
I was running into the same problem described in ticket #1328, on both Linux 
and Mac.
What's happening is that AppWizard is looking for the spec files based on the 
directory
in sys.path[0], and something must be altering that path now (either in Dabo or 
something
else in Python). 

Changing this to read the location from app.HomeDirectory seems to work for me. 
Please
confirm.



Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py    2010-02-08 13:45:13 UTC (rev 
5664)
+++ trunk/ide/wizards/AppWizard/AppWizard.py    2010-02-08 17:56:09 UTC (rev 
5665)
@@ -570,7 +570,7 @@
                self.Size = (520, 560)
                
                if defaultDirectory is None:
-                       self.wizDir = sys.path[0]
+                       self.wizDir = self.Application.HomeDirectory
                else:
                        self.wizDir = defaultDirectory
                self.tableDict = {}
@@ -1183,10 +1183,8 @@
        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, defaultDirectory=defdir)
+       wiz = AppWizard(None)
        
        # 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/[email protected]

Reply via email to