File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ const char *init_script =
281281" PYSTAND_HOME = os.environ['PYSTAND_HOME']\n "
282282" PYSTAND_RUNTIME = os.environ['PYSTAND_RUNTIME']\n "
283283" PYSTAND_SCRIPT = os.environ['PYSTAND_SCRIPT']\n "
284- " sys.path.insert(0, os .path.abspath(PYSTAND_HOME)) \n "
284+ " sys.path_origin = [n for n in sys .path] \n "
285285" def MessageBox(msg, info = 'Message'):\n "
286286" import ctypes\n "
287287" ctypes.windll.user32.MessageBoxW(None, str(msg), str(info), 0)\n "
@@ -297,6 +297,7 @@ const char *init_script =
297297" for n in ['lib', 'site-packages']:\n "
298298" test = os.path.join(PYSTAND_HOME, n)\n "
299299" if os.path.exists(test): sys.path.append(test)\n "
300+ " sys.path.append(os.path.abspath(PYSTAND_HOME))\n "
300301" sys.argv = [PYSTAND_SCRIPT] + sys.argv[1:]\n "
301302" text = open(PYSTAND_SCRIPT).read()\n "
302303" environ = {'__file__': PYSTAND_SCRIPT}\n "
You can’t perform that action at this time.
0 commit comments