[Distutils] setuptools, PYTHONPATH and suExec
Joe Gregorio
joe.gregorio at gmail.com
Wed Apr 26 22:17:29 CEST 2006
On 4/26/06, Phillip J. Eby <pje at telecommunity.com> wrote:
> But this does:
>
> #!/path/to/python -S
> import os, sys
> paths = ["wherever"]
> os.environ["PYTHONPATH"] = os.pathsep.join(paths)
> sys.path[0:0] = paths
> import site
>
> And this approach doesn't need workingenv either; Joe's plain setuptools
> arrangement should work with this.
>
> I'd have suggested this first, except that I forgot that you could use -S
> and then import site afterward.
That works like a charm, thanks!
-joe
--
Joe Gregorio http://bitworking.org
More information about the Distutils-SIG
mailing list