Hi all. I've got a python file called 'foo' (no extension). I want to
be able to load it as a module, like so:
m = __import__('foo ')
However, the interpreter tells me "No module named foo". If I rename
it foo.py, I can indeed import it. Is the extension required? Is there
any way to override that requirement?
Thanks,
--Steve
be able to load it as a module, like so:
m = __import__('foo ')
However, the interpreter tells me "No module named foo". If I rename
it foo.py, I can indeed import it. Is the extension required? Is there
any way to override that requirement?
Thanks,
--Steve
Comment