Re: Weird import problem

2008-05-05 Thread Anton81
NS/dir1/file1.py NS/dir2/file2.py This *must* be wrong or at least not the full directory listing - please read It is the directory structure in one of the python paths. Missing __init__.py in the dir2? Oh right. I forgot about this. Thank you! --

Weird import problem

2008-05-04 Thread Anton81
I have a directory structure like NS/dir1/file1.py NS/dir2/file2.py if in the python shell I type import NS.dir1.file1 it works, however typing import NS.dir2.file2 fails with ImportError: No module named dir2.file2 Any ideas what could go wrong? Directory permissions seem to be OK. --

Re: Weird import problem

2008-05-04 Thread Diez B. Roggisch
Anton81 schrieb: I have a directory structure like NS/dir1/file1.py NS/dir2/file2.py This *must* be wrong or at least not the full directory listing - please read http://docs.python.org/tut/node8.html if in the python shell I type import NS.dir1.file1 it works, however typing import