Utilities/ClassBrowsers/__init__.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Utilities/ClassBrowsers/__init__.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Utilities/ClassBrowsers/__init__.py	Sat Jan 02 15:11:35 2010 +0000
@@ -48,22 +48,22 @@
     ext = os.path.splitext(module)[1].lower()
     
     if ext in __extensions["IDL"]:
-        import idlclbr
+        from . import idlclbr
         dict = idlclbr.readmodule_ex(module, path)
         idlclbr._modules.clear()
     elif ext in __extensions["Ruby"]:
-        import rbclbr
+        from . import rbclbr
         dict = rbclbr.readmodule_ex(module, path)
         rbclbr._modules.clear()
     elif ext in Preferences.getPython("PythonExtensions") or \
          ext in Preferences.getPython("Python3Extensions") or \
          isPyFile:
-        import pyclbr
+        from . import pyclbr
         dict = pyclbr.readmodule_ex(module, path, isPyFile = isPyFile)
         pyclbr._modules.clear()
     else:
         # try Python if it is without extension
-        import pyclbr
+        from . import pyclbr
         dict = pyclbr.readmodule_ex(module, path)
         pyclbr._modules.clear()
     
@@ -109,8 +109,8 @@
     
     if name.lower().endswith('.py'):
         name = name[:-3]
-    if type(name) == type(u""):
-        name = name.encode('utf-8')
+##    if isinstance(name, type("")):
+##        name = name.encode('utf-8')
     
     try:
         return imp.find_module(name, path)

eric ide

mercurial