dabo Commit
Revision 3642
Date: 2007-11-08 07:44:57 -0800 (Thu, 08 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3642
Changed:
U trunk/demo/DaboDemo.py
Log:
Fixes a problem when opening DaboDemo from the command line with the runtime
engine. If you didn't start in the demo directory, it would not find the .cdxml
file.
Diff:
Modified: trunk/demo/DaboDemo.py
===================================================================
--- trunk/demo/DaboDemo.py 2007-11-08 06:09:02 UTC (rev 3641)
+++ trunk/demo/DaboDemo.py 2007-11-08 15:44:57 UTC (rev 3642)
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-
import sys
import os
import platform
@@ -10,7 +9,9 @@
def main():
# The splash screen looks great on Mac/Win, and crappy on Linux.
useSplash = "linux" not in platform.platform().lower()
- mfc = os.path.join(os.path.split(sys.argv[0])[0], "DaboDemo.cdxml")
+ mfc = "DaboDemo.cdxml"
+ if not os.path.exists(mfc):
+ mfc = os.path.join(os.path.split(sys.argv[0])[0], mfc)
app = dabo.dApp(showSplashScreen=useSplash, splashTimeout=3000,
MainFormClass=mfc, BasePrefKey="demo.DaboDemo")
_______________________________________________
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]