eric6/eric6.py

changeset 7574
3fbc430c4091
parent 7461
1f239d5f89b8
child 7635
0cdead130a81
diff -r 07f0430ca578 -r 3fbc430c4091 eric6/eric6.py
--- a/eric6/eric6.py	Sun May 03 17:18:18 2020 +0200
+++ b/eric6/eric6.py	Mon May 04 17:20:19 2020 +0200
@@ -293,6 +293,14 @@
     if "__PYVENV_LAUNCHER__" in os.environ:
         del os.environ["__PYVENV_LAUNCHER__"]
     
+    # make sure our executable directory (i.e. that of the used Python
+    # interpreter) is included in the executable search path
+    pathList = os.environ["PATH"].split(os.pathsep)
+    exeDir = os.path.dirname(sys.executable)
+    if exeDir not in pathList:
+        pathList.insert(0, exeDir)
+    os.environ["PATH"] = os.pathsep.join(pathList)
+    
     from Toolbox import Startup
     # set the library paths for plugins
     Startup.setLibraryPaths()

eric ide

mercurial