Command-line option equiv of PYTHONPATH
Antoon Pardon
apardon at forel.vub.ac.be
Fri Apr 27 09:52:39 EDT 2007
On 2007-04-27, James Stroud <jstroud at mbi.ucla.edu> wrote:
> Rajesh wrote:
>> Hi,
>>
>> The '-I<path>' option adds the path to the list of directories that
>> contains modules that can be included in a script. I can use it as "#!/
>> usr/bin/perl -I<path_to_my_modules>" thereby not asking the user of
>> the script to set the <path_to_my_modules> in their environment.
>>
>> Is there any equivalent command-line option to the python binary or a
>> command-line version of PYTHONPATH?
>>
>> Regards
>> Rajesh
>
> Why not just modify sys.path within the actual script?
Maybe because he has multiple versions of modules he wants to test his
script against.
--
Antoon Pardon
More information about the Python-list
mailing list