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 NS.dir2.file2

fails with

ImportError: No module named dir2.file2

Any ideas what could go wrong?
Directory permissions seem to be OK.

Missing __init__.py in the dir2?

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to