[Pythonmac-SIG] RE: problem importing python packages
Magladry, Stephen
stephenm@humongous.com
Wed, 4 Sep 2002 14:37:52 -0700
Yea, that's what I figured out. I had two version of Python on my machine.
The import method was broken because the alias in the preference folder
pointed to the "wrong" Python folder. Once I updated the Python Alias in the
preference folder, everything worked as expected.
Thanks for the reply,
Stephen
-----Original Message-----
From: Jack Jansen [mailto:Jack.Jansen@oratrix.com]
Sent: Wednesday, September 04, 2002 1:35 PM
To: Magladry, Stephen
Cc: 'pythonmac-sig@python.org'
Subject: Re: [Pythonmac-SIG] RE: problem importing python packages
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.