From 67fcf2b15b1df03034aae12ac27b26f13f4e356a Mon Sep 17 00:00:00 2001 From: Florent Lamiraux <florent@laas.fr> Date: Fri, 11 Feb 2011 18:23:10 +0100 Subject: [PATCH] Do not add current directory in sys.path. --- src/interpreter.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/interpreter.cc b/src/interpreter.cc index 31844ff..08544c4 100644 --- a/src/interpreter.cc +++ b/src/interpreter.cc @@ -22,10 +22,7 @@ namespace dynamicgraph { namespace python { static const std::string pythonPrefix[5] = { - "import sys\n", "import traceback\n", - "if '' not in sys.path: sys.path.append('')\n", - "sys.argv = ['']\n", "def display(s): return str(s) if not s is None else None" }; } -- GitLab