[Pythonmac-SIG] RE: problem importing python packages
Jack Jansen
Jack.Jansen@oratrix.com
Wed, 4 Sep 2002 13:35:08 -0700
On woensdag, sep 4, 2002, at 11:15 US/Pacific, Magladry, Stephen wrote:
> Problem solved I have a weird path problem.
>
> By dropping btest.py on PythonInterpreter the paths where setup
> correctly.
> Using the PythonInterpreter and doing the import and the paths were
> incorrect. Now I get to figure out why my paths are incorrect.
>
Actually, the paths were correct in both cases, but maybe not what you
expected:-).
If you run a script then the scripts' directory is in sys.path. If you
don't run a script but an interactive interpreter then Python's home
directory is in sys.path.