Kent Johnson wrote: > The first argument to __import__ should be a module or package name, not > a file path, e.g. "my.settings". Python will look for the module in the > current sys.path the same as if you used a normal import. Apparently the > / is being interpreted as a . and I guess you have a file my/__init__.py so > import my.settings > will work but > import .tmp.my.settings > doesn't. >
as I mention in another email, if I do: import sys sys.path.insert(0, '') It all just works. Very confused. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor