Utilities/ClassBrowsers/__init__.py

branch
6_0_x
changeset 4408
a0b6d96985aa
parent 4022
f5f42921717e
child 4631
5c1a96925da4
equal deleted inserted replaced
4406:cb7b6c556fc5 4408:a0b6d96985aa
141 for p in path: # search in path 141 for p in path: # search in path
142 pathname = os.path.join(p, name) 142 pathname = os.path.join(p, name)
143 if os.path.exists(pathname): 143 if os.path.exists(pathname):
144 return (open(pathname), pathname, (ext, 'r', PY_SOURCE)) 144 return (open(pathname), pathname, (ext, 'r', PY_SOURCE))
145 raise ImportError 145 raise ImportError
146 except SyntaxError:
147 # re-raise as an import error
148 raise ImportError

eric ide

mercurial