dabo Commit
Revision 2189
Date: 2006-06-01 08:22:41 -0700 (Thu, 01 Jun 2006)
Author: ed

Changed:
U   trunk/dabo/lib/DesignerXmlConverter.py

Log:
Added escaping of backslashes to better handle Windows' unfortunate choice of 
path separator.


Diff:
Modified: trunk/dabo/lib/DesignerXmlConverter.py
===================================================================
--- trunk/dabo/lib/DesignerXmlConverter.py      2006-06-01 01:15:06 UTC (rev 
2188)
+++ trunk/dabo/lib/DesignerXmlConverter.py      2006-06-01 15:22:41 UTC (rev 
2189)
@@ -73,20 +73,16 @@
                # 'self.classText' will contain the generated code
                self.classText = ""
                cdPath, cdFile = os.path.split(self._codeFileName)
+               cdPath = cdPath.replace("\\", r"\\")
                cdFileNoExt = os.path.splitext(cdFile)[0]
-               
                if addImports:
                        self.classText += """import dabo
 dabo.ui.loadUI("wx")
 import dabo.dEvents as dEvents
 import sys
 # debugging!
-print "SYS.PATH:", sys.path
 if "%s" not in sys.path:
-       print "APPENDING TO SYS.PATH"
        sys.path.append("%s")
-       print
-       print "NEW SYS.PATH:", sys.path
 import %s as %s
 %s
 




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to