daboide Commit
Revision 850
Date: 2007-06-01 05:35:51 -0700 (Fri, 01 Jun 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/daboide/changeset/850

Changed:
U   trunk/ClassDesigner.py

Log:
Fixed some pathing code that was causing a problem under Windows. Thanks to 
Robert Davidson for this fix.


Diff:
Modified: trunk/ClassDesigner.py
===================================================================
--- trunk/ClassDesigner.py      2007-05-27 15:34:32 UTC (rev 849)
+++ trunk/ClassDesigner.py      2007-06-01 12:35:51 UTC (rev 850)
@@ -196,7 +196,7 @@
 
                # Temporary hack to turn off the SizerPaletteForm
                import inspect
-               pth = os.path.split(inspect.getfile(self.__class__))[0]
+               pth = os.path.split(inspect.getfile(sys._getframe()))[0]
                if not os.path.exists(os.path.join(pth, "nopalette.flag")):
                        palette = self.SizerPalette
                        palette.Controller = self




_______________________________________________
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]

Reply via email to