[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src GFDesigner.py
From: |
Jason Cater |
Subject: |
gnue/designer/src GFDesigner.py |
Date: |
Thu, 17 Jan 2002 13:33:03 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/17 13:33:03
Modified files:
designer/src : GFDesigner.py
Log message:
added new startup debugging support
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/GFDesigner.py.diff?tr1=1.30&tr2=1.31&r1=text&r2=text
Patches:
Index: gnue/designer/src/GFDesigner.py
diff -c gnue/designer/src/GFDesigner.py:1.30
gnue/designer/src/GFDesigner.py:1.31
*** gnue/designer/src/GFDesigner.py:1.30 Mon Jan 14 01:17:10 2002
--- gnue/designer/src/GFDesigner.py Thu Jan 17 13:33:03 2002
***************
*** 26,31 ****
--- 26,62 ----
# NOTES:
import sys, os
+
+ ######################
+ #
+ # This is a debugging thing
+ #
+ import os, ihooks
+
+ class MyHooks(ihooks.Hooks):
+ pass
+
+ import_indent = 0
+
+ class MyModuleLoader(ihooks.ModuleLoader):
+
+ def load_module(self, name, stuff):
+
+ global import_indent
+ print "." * import_indent + "Importing %s..." % name
+ import_indent += 1
+
+ module = ihooks.ModuleLoader.load_module(self, name, stuff)
+
+ import_indent -= 1
+ return module
+
+
+ if os.environ.has_key('GNUE_DEBUG_IMPORT'):
+ ihooks.ModuleImporter(MyModuleLoader(MyHooks())).install()
+
+ ######################
+
from StringIO import StringIO
from wxPython.wx import *
from gnue.common import GDebug, GConfig
***************
*** 258,264 ****
instanceClass = self.toolExtensionMapping[extension].Instance
return instanceClass.Instance(self, file)
-
#
--- 289,294 ----