From 382268308e5b71ed3d7b435c22f28f6f6196df2a Mon Sep 17 00:00:00 2001 From: Unbit Date: Sun, 19 May 2013 23:40:49 +0200 Subject: [PATCH] improved PYTHONPATH management --- plugins/pypy/pypy_setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/pypy/pypy_setup.py b/plugins/pypy/pypy_setup.py index c6849b15..744910e8 100644 --- a/plugins/pypy/pypy_setup.py +++ b/plugins/pypy/pypy_setup.py @@ -1,7 +1,7 @@ import sys import os -sys.path += os.environ.get('PYTHONPATH','').split(':') sys.path.insert(0, '.') +sys.path.extend(os.environ.get('PYTHONPATH','').split(os.pathsep)) import imp mainmodule = type(sys)('__main__') @@ -98,6 +98,7 @@ add an item to the pythonpath def uwsgi_pypy_pythonpath(item): path = ffi.string(item) sys.path.append(path) + print "added %s to pythonpath" % path """