Newbie: import
Larry Bates
larry.bates at websafe.com
Wed Apr 18 13:19:13 EDT 2007
genkuro at gmail.com wrote:
> I thought import used relative paths from either the python executable
> or the script being executed. I have a script pulling in code from an
> arbitrary directory. How is this happening?
>
> It's a RHEL 4 environment by the way. I couldn't find any relevant
> environment variables.
>
> Thanks from a newbie for any insight.
>
PYTHONPATH environment variable is next in line to be searched.
-Larry
More information about the Python-list
mailing list