Command-line option equiv of PYTHONPATH

"Martin v. Löwis" martin at v.loewis.de
Fri Apr 27 18:46:09 EDT 2007


>> 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<path_to_my_modules>"' so clearly his intention is modify
the script.

Martin



More information about the Python-list mailing list