32 |
32 |
33 import sys |
33 import sys |
34 import os |
34 import os |
35 |
35 |
36 from Globals import qVersionTuple |
36 from Globals import qVersionTuple |
|
37 |
|
38 app = None |
37 |
39 |
38 |
40 |
39 if qVersionTuple() < (5, 6, 0): |
41 if qVersionTuple() < (5, 6, 0): |
40 if "--quiet" not in sys.argv: |
42 if "--quiet" not in sys.argv: |
41 from PyQt5.QtCore import QTimer |
43 from PyQt5.QtCore import QTimer |
156 |
158 |
157 def main(): |
159 def main(): |
158 """ |
160 """ |
159 Main entry point into the application. |
161 Main entry point into the application. |
160 """ |
162 """ |
|
163 global app |
|
164 |
161 options = [ |
165 options = [ |
162 ("--config=configDir", |
166 ("--config=configDir", |
163 "use the given directory as the one containing the config files"), |
167 "use the given directory as the one containing the config files"), |
164 ("--private", "start the browser in private browsing mode"), |
168 ("--private", "start the browser in private browsing mode"), |
165 ("--qthelp", "start the browser with support for QtHelp"), |
169 ("--qthelp", "start the browser with support for QtHelp"), |