imputil
Magnus Heino
magnus.heino at rivermen.se
Fri Nov 17 06:46:35 EST 2000
Hi.
I've got foo.pyc that I want to import.
>>> import sys
>>> import imputil
>>> imputil.ImportManager().install()
>>> sys.path.insert(0, imputil.BuiltinImporter())
>>> import foo
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.0/imputil.py", line 91, in _import_hook
raise ImportError, 'No module named ' + fqname
ImportError: No module named foo
>>>
Is this supposed to be working? Or is it only possible to import .py
modules with the current implementation of imputil?
The examples in Python-2.0/Demo/imputil/importers.py seems to be old and
obsolete.
/Magnus
More information about the Python-list
mailing list