6946:660757d6c57b | 6949:a5255f1ba3f0 |
---|---|
11 of the web browser and starts the Qt event loop. This is a standalone version | 11 of the web browser and starts the Qt event loop. This is a standalone version |
12 of the integrated web browser. It is based on QtWebEngine. | 12 of the integrated web browser. It is based on QtWebEngine. |
13 """ | 13 """ |
14 | 14 |
15 from __future__ import unicode_literals | 15 from __future__ import unicode_literals |
16 | |
17 import sys | |
18 import os | |
19 | |
20 sys.path.insert(1, os.path.dirname(__file__)) | |
16 | 21 |
17 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ | 22 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
18 | 23 |
19 try: # Only for Py2 | 24 try: # Only for Py2 |
20 import Globals.compatibility_fixes # __IGNORE_WARNING__ | 25 import Globals.compatibility_fixes # __IGNORE_WARNING__ |
27 except ImportError: | 32 except ImportError: |
28 import sip | 33 import sip |
29 sip.setdestroyonexit(False) | 34 sip.setdestroyonexit(False) |
30 except AttributeError: | 35 except AttributeError: |
31 pass | 36 pass |
32 | |
33 import sys | |
34 import os | |
35 | 37 |
36 from Globals import qVersionTuple | 38 from Globals import qVersionTuple |
37 | 39 |
38 app = None | 40 app = None |
39 | 41 |
177 "eric6 Web Browser", | 179 "eric6 Web Browser", |
178 "file", | 180 "file", |
179 "web browser", | 181 "web browser", |
180 options) | 182 options) |
181 | 183 |
182 if not Globals.checkBlacklistedVersions(): | |
183 sys.exit(100) | |
184 | |
185 # set the library paths for plugins | 184 # set the library paths for plugins |
186 Startup.setLibraryPaths() | 185 Startup.setLibraryPaths() |
187 | 186 |
188 app = E5Application(sys.argv) | 187 app = E5Application(sys.argv) |
189 if "--private" not in sys.argv: | 188 if "--private" not in sys.argv: |