dabo Commit
Revision 4922
Date: 2009-01-11 16:48:10 -0800 (Sun, 11 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4922
Changed:
U trunk/dabo/dApp.py
Log:
Fixed a bug that would happen if calling both the main script and the file
parameter with fully qualified paths.
Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py 2009-01-11 20:29:01 UTC (rev 4921)
+++ trunk/dabo/dApp.py 2009-01-12 00:48:10 UTC (rev 4922)
@@ -1331,7 +1331,9 @@
except AttributeError:
# Get the script name that launched the app. In case it
was run
# as an executable, strip the leading './'
- calledScript = sys.argv[0].lstrip("./")
+ calledScript = sys.argv[0]
+ if calledScript.startswith("./"):
+ calledScript = calledScript.lstrip("./")
scriptDir = os.path.split(os.path.join(os.getcwd(),
calledScript))[0]
appDir =
os.path.split(inspect.getabsfile(self.__class__))[0]
_______________________________________________
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]