Re: Command-line option equiv of PYTHONPATH

2007-04-27 Thread Martin v. Löwis
>> 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. See the original post: 'I can use it as "#!/usr/bin/perl -I"' so clearly his intention is modify the script. Martin -- http://mail.python.org/m

Re: Command-line option equiv of PYTHONPATH

2007-04-27 Thread Harry George
Antoon Pardon <[EMAIL PROTECTED]> writes: > On 2007-04-27, James Stroud <[EMAIL PROTECTED]> wrote: > > Rajesh wrote: > >> Hi, > >> > >> The '-I' 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"

Re: Command-line option equiv of PYTHONPATH

2007-04-27 Thread Antoon Pardon
On 2007-04-27, James Stroud <[EMAIL PROTECTED]> wrote: > Rajesh wrote: >> Hi, >> >> The '-I' 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" thereby not asking the user of >> the script to set the

Re: Command-line option equiv of PYTHONPATH

2007-04-26 Thread Martin v. Löwis
> The '-I' 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" thereby not asking the user of > the script to set the in their environment. > > Is there any equivalent command-line option to the python b

Re: Command-line option equiv of PYTHONPATH

2007-04-26 Thread James Stroud
Rajesh wrote: > Hi, > > The '-I' 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" thereby not asking the user of > the script to set the in their environment. > > Is there any equivalent command-line

Command-line option equiv of PYTHONPATH

2007-04-26 Thread Rajesh
Hi, The '-I' 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" thereby not asking the user of the script to set the in their environment. Is there any equivalent command-line option to the python binary o