[Tutor] Setting PYTHONPATH and other env vars dynamically

Kent Johnson kent37 at tds.net
Wed Aug 19 22:35:19 CEST 2009


On Wed, Aug 19, 2009 at 4:00 PM, Jramak<jramak345 at gmail.com> wrote:

>> One more - put required packages and modules into the same directory
>> as the executable, usually the current directory is on the Python
>> search path.
>>
>> Kent
>
>
> Hi Kent, there is no executable. It is just a collection of python scripts.
> I assume you refer to the Python search path as PYTHONPATH or sys.path. Do
> correct me if I am wrong.

Sorry, I mean put the packages in the same directory as the python
script that needs them. The search path is sys.path which is affected
by PYTHONPATH among other things...

Kent


More information about the Tutor mailing list