227 """ |
227 """ |
228 Main entry point into the application. |
228 Main entry point into the application. |
229 """ |
229 """ |
230 from eric7 import Globals |
230 from eric7 import Globals |
231 from eric7.Globals import AppInfo |
231 from eric7.Globals import AppInfo |
|
232 from eric7.Toolbox import Startup |
232 |
233 |
233 global app, args, mainWindow, splash, restartArgs, inMainLoop |
234 global app, args, mainWindow, splash, restartArgs, inMainLoop |
234 |
235 |
235 sys.excepthook = excepthook |
236 sys.excepthook = excepthook |
236 multiprocessing.set_start_method("spawn") |
237 multiprocessing.set_start_method("spawn") |
282 exeDir = os.path.dirname(sys.executable) |
283 exeDir = os.path.dirname(sys.executable) |
283 if exeDir not in pathList: |
284 if exeDir not in pathList: |
284 pathList.insert(0, exeDir) |
285 pathList.insert(0, exeDir) |
285 os.environ["PATH"] = os.pathsep.join(pathList) |
286 os.environ["PATH"] = os.pathsep.join(pathList) |
286 |
287 |
287 from eric7.Toolbox import Startup # __IGNORE_WARNING_I101__ |
|
288 |
|
289 # set the library paths for plugins |
288 # set the library paths for plugins |
290 Startup.setLibraryPaths() |
289 Startup.setLibraryPaths() |
291 |
290 |
292 if WEBENGINE_AVAILABLE: |
291 if WEBENGINE_AVAILABLE: |
293 scheme = QWebEngineUrlScheme(b"qthelp") |
292 scheme = QWebEngineUrlScheme(b"qthelp") |