Make sure proxies load the right version of nepi in case multiple ones are installed.
authorClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Mon, 5 Sep 2011 15:17:45 +0000 (17:17 +0200)
committerClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Mon, 5 Sep 2011 15:17:45 +0000 (17:17 +0200)
src/nepi/util/server.py

index 0b9cdae..7906712 100644 (file)
@@ -863,7 +863,7 @@ def popen_python(python_code,
     #cmd += "$CMD "
     #cmd += "strace -f -tt -s 200 -o strace$$.out "
     import nepi
-    cmd += "python -c 'import sys; sys.path.append(%s); from nepi.util import server; server.decode_and_execute()'" % (
+    cmd += "python -c 'import sys; sys.path.insert(0,%s); from nepi.util import server; server.decode_and_execute()'" % (
         repr(os.path.dirname(os.path.dirname(nepi.__file__))).replace("'",'"'),
     )