commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/designer/src ToolSupport.py


From: Jason Cater
Subject: gnue/designer/src ToolSupport.py
Date: Sat, 19 Jan 2002 00:33:57 -0500

CVSROOT:        /home/cvs
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/01/19 00:33:57

Modified files:
        designer/src   : ToolSupport.py 

Log message:
        fixed dynamic import problem

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/designer/src/ToolSupport.py.diff?cvsroot=OldCVS&tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/designer/src/ToolSupport.py
diff -c gnue/designer/src/ToolSupport.py:1.1 
gnue/designer/src/ToolSupport.py:1.2
*** gnue/designer/src/ToolSupport.py:1.1        Fri Jan 18 22:02:55 2002
--- gnue/designer/src/ToolSupport.py    Sat Jan 19 00:33:57 2002
***************
*** 27,33 ****
  #
  
  
! from gnue.common import GDebug as _GDebug
  
  SupportedTools = []
  UnsupportedTools = []
--- 27,33 ----
  #
  
  
! from gnue.common import GDebug as _GDebug, dyn_import
  
  SupportedTools = []
  UnsupportedTools = []
***************
*** 38,44 ****
  
  for tool in Tools:
    try:
!     SupportedTools.append(__import__(tool))
      _GDebug.printMesg(1,'Loaded Designer support for %s' % tool)
    except ImportError, mesg:
      UnsupportedTools.append(tool)
--- 38,44 ----
  
  for tool in Tools:
    try:
!     SupportedTools.append(dyn_import("gnue.designer.%s" % tool))
      _GDebug.printMesg(1,'Loaded Designer support for %s' % tool)
    except ImportError, mesg:
      UnsupportedTools.append(tool)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]