19 originalPathString = os.getenv("PATH") |
19 originalPathString = os.getenv("PATH") |
20 |
20 |
21 sys.path.insert(1, os.path.dirname(__file__)) |
21 sys.path.insert(1, os.path.dirname(__file__)) |
22 |
22 |
23 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
23 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ |
24 |
|
25 try: # Only for Py2 |
|
26 import Globals.compatibility_fixes # __IGNORE_WARNING__ |
|
27 except (ImportError): |
|
28 pass |
|
29 |
24 |
30 for arg in sys.argv[:]: |
25 for arg in sys.argv[:]: |
31 if arg.startswith("--config="): |
26 if arg.startswith("--config="): |
32 import Globals |
27 import Globals |
33 configDir = arg.replace("--config=", "") |
28 configDir = arg.replace("--config=", "") |