eric6/eric6_sqlbrowser.py

branch
setup.py
changeset 6949
a5255f1ba3f0
parent 6942
2602857055c5
child 7192
a22eee00b052
equal deleted inserted replaced
6946:660757d6c57b 6949:a5255f1ba3f0
11 of the SQL browser and starts the Qt event loop. 11 of the SQL browser and starts the Qt event loop.
12 """ 12 """
13 13
14 from __future__ import unicode_literals 14 from __future__ import unicode_literals
15 15
16 import sys
17 import os
18
19 sys.path.insert(1, os.path.dirname(__file__))
20
16 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ 21 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__
17 22
18 try: # Only for Py2 23 try: # Only for Py2
19 import Globals.compatibility_fixes # __IGNORE_WARNING__ 24 import Globals.compatibility_fixes # __IGNORE_WARNING__
20 except (ImportError): 25 except (ImportError):
21 pass 26 pass
22
23 import sys
24 import os
25 27
26 for arg in sys.argv[:]: 28 for arg in sys.argv[:]:
27 if arg.startswith("--config="): 29 if arg.startswith("--config="):
28 import Globals 30 import Globals
29 configDir = arg.replace("--config=", "") 31 configDir = arg.replace("--config=", "")

eric ide

mercurial