eric6/eric6_browser.py

changeset 6964
0b8908ba12d3
parent 6947
179eef72c548
parent 6949
a5255f1ba3f0
child 7192
a22eee00b052
equal deleted inserted replaced
6962:1dec9d06dd7b 6964:0b8908ba12d3
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

eric ide

mercurial