exec'ing an import

Bernhard Herzog bh at intevation.de
Mon Dec 11 15:26:31 CET 2000


Grant Griffin <not.this at seebelow.org> writes:

> Finally, I discovered that that when I executed the script "script.py"
> using just the script name (like "script") I got the ImportError, but
> when I executed it by calling the Python interpreter (ike "python
> script.py") it worked fine.

Could it be that you have several Python interpreters installed and
invoking "script" and "python script.py" use different ones (with
resulting different sys.paths)?

  Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
MapIt!                                               http://mapit.de/
Sketch                                 http://sketch.sourceforge.net/



More information about the Python-list mailing list