diff options
Diffstat (limited to '3rdparty/python-console/modified')
| -rw-r--r-- | 3rdparty/python-console/modified/pyinterpreter.cc | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/3rdparty/python-console/modified/pyinterpreter.cc b/3rdparty/python-console/modified/pyinterpreter.cc index c222c9ad..99b8883e 100644 --- a/3rdparty/python-console/modified/pyinterpreter.cc +++ b/3rdparty/python-console/modified/pyinterpreter.cc @@ -133,8 +133,10 @@ void pyinterpreter_initialize()      PyRun_SimpleString("import sys\n"                         "import redirector\n" +                       "import tempfile\n"                         "sys.path.insert(0, \".\")\n" // add current path                         "sys.stdout = redirector.redirector()\n" +                       "sys.stdin = tempfile.TemporaryFile(mode='r')\n"                         "sys.stderr = sys.stdout\n"                         "import rlcompleter\n"                         "sys.completer = rlcompleter.Completer()\n"); | 
