Importing Problem on Windows

brolewis hcslmf at texlife.com
Mon Jan 10 12:49:12 EST 2005


I have a directory that has two files in it:

parse.py
parser.py

parse.py imports a function from parser.py and uses it to parse out the
needed information. On Linux, the following code works without a
problem:

parse.py, line 1:
from parser import regexsearch

However, when I run the same command in Windows, I get the following
error:

ImportError: cannot import name regexsearch
Any suggestions on why this would work on Linux but not on Windows?




More information about the Python-list mailing list