eric6.py

branch
maintenance
changeset 6826
c6dda2cbe081
parent 6775
a84449ccb414
equal deleted inserted replaced
6764:d14ddbfbbd36 6826:c6dda2cbe081
72 # some global variables needed to start the application 72 # some global variables needed to start the application
73 args = None 73 args = None
74 mainWindow = None 74 mainWindow = None
75 splash = None 75 splash = None
76 inMainLoop = None 76 inMainLoop = None
77 app = None
77 78
78 if "--debug" in sys.argv: 79 if "--debug" in sys.argv:
79 del sys.argv[sys.argv.index("--debug")] 80 del sys.argv[sys.argv.index("--debug")]
80 logging.basicConfig(level=logging.DEBUG) 81 logging.basicConfig(level=logging.DEBUG)
81 82
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)

eric ide

mercurial