Import question
Fred Lionetti
lionetti at bioeng.ucsd.edu
Thu Sep 11 13:20:47 EDT 2003
Hi everyone,
Hopefully a quick question for someone out there--
If I have a file at C:\Python23\myfolder\mymodule.py
why can't I say (from python prompt or anywhere else):
import myfolder.mymodule ????
When I try to do that I get the following error message:
ImportError: No module named myfolder.mymodule
Yet, myfolder really is in that location, and the sys.path includes
"C:\Python23\"
If I try appending "C:\Python23\myfolder" to sys.path then I can say import
mymodule, and it works--but that creates other problems with the file I'm
working with.
Any ideas????
Thanks,
Fred
More information about the Python-list
mailing list