eric6/eric6.py

changeset 7574
3fbc430c4091
parent 7461
1f239d5f89b8
child 7635
0cdead130a81
equal deleted inserted replaced
7573:07f0430ca578 7574:3fbc430c4091
291 options) 291 options)
292 292
293 if "__PYVENV_LAUNCHER__" in os.environ: 293 if "__PYVENV_LAUNCHER__" in os.environ:
294 del os.environ["__PYVENV_LAUNCHER__"] 294 del os.environ["__PYVENV_LAUNCHER__"]
295 295
296 # make sure our executable directory (i.e. that of the used Python
297 # interpreter) is included in the executable search path
298 pathList = os.environ["PATH"].split(os.pathsep)
299 exeDir = os.path.dirname(sys.executable)
300 if exeDir not in pathList:
301 pathList.insert(0, exeDir)
302 os.environ["PATH"] = os.pathsep.join(pathList)
303
296 from Toolbox import Startup 304 from Toolbox import Startup
297 # set the library paths for plugins 305 # set the library paths for plugins
298 Startup.setLibraryPaths() 306 Startup.setLibraryPaths()
299 307
300 app = E5Application(sys.argv) 308 app = E5Application(sys.argv)

eric ide

mercurial