Module imports fine from interactive, not from script

Joshua J. Kugler joshua at eeinternet.com
Thu May 24 17:08:32 EDT 2007


On Thursday 24 May 2007 08:32, Steve Holden wrote:
> The directory containing the script you are executing is also added to
> sys.path. Since you are executing a script called planet ...

Ah!  That's it. That had never occurred to me, as I was under the impression
that your current *working* directory was added to sys.path, not the
directory of the script.

Thanks!

j

-- 
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list