256 Main entry point into the application. |
257 Main entry point into the application. |
257 """ |
258 """ |
258 from Globals import AppInfo |
259 from Globals import AppInfo |
259 import Globals |
260 import Globals |
260 |
261 |
261 global args, mainWindow, splash, restartArgs, inMainLoop |
262 global app, args, mainWindow, splash, restartArgs, inMainLoop |
262 |
263 |
263 sys.excepthook = excepthook |
264 sys.excepthook = excepthook |
264 |
265 |
265 options = [ |
266 options = [ |
266 ("--config=configDir", |
267 ("--config=configDir", |
295 options) |
296 options) |
296 |
297 |
297 if not Globals.checkBlacklistedVersions(): |
298 if not Globals.checkBlacklistedVersions(): |
298 sys.exit(100) |
299 sys.exit(100) |
299 |
300 |
|
301 if "__PYVENV_LAUNCHER__" in os.environ: |
|
302 del os.environ["__PYVENV_LAUNCHER__"] |
|
303 |
300 from Toolbox import Startup |
304 from Toolbox import Startup |
301 # set the library paths for plugins |
305 # set the library paths for plugins |
302 Startup.setLibraryPaths() |
306 Startup.setLibraryPaths() |
303 |
307 |
304 app = E5Application(sys.argv) |
308 app = E5Application(sys.argv) |