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) |