Command-line option equiv of PYTHONPATH

"Martin v. Löwis" martin at v.loewis.de
Sat Apr 28 00:46:09 CEST 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