10 This is the main Python script that performs the necessary initialization |
10 This is the main Python script that performs the necessary initialization |
11 of the tr previewer and starts the Qt event loop. This is a standalone version |
11 of the tr previewer and starts the Qt event loop. This is a standalone version |
12 of the integrated tr previewer. |
12 of the integrated tr previewer. |
13 """ |
13 """ |
14 |
14 |
|
15 import os |
15 import sys |
16 import sys |
16 import os |
|
17 |
17 |
18 for arg in sys.argv[:]: |
18 for arg in sys.argv[:]: |
19 if arg.startswith("--config="): |
19 if arg.startswith("--config="): |
20 from eric7 import Globals |
20 from eric7 import Globals |
21 |
21 |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir |
33 ) |
33 ) |
34 sys.argv.remove(arg) |
34 sys.argv.remove(arg) |
35 |
35 |
36 from eric7.EricWidgets.EricApplication import EricApplication |
36 from eric7.EricWidgets.EricApplication import EricApplication |
37 |
37 from eric7.Globals import AppInfo |
|
38 from eric7.Toolbox import Startup |
38 from eric7.Tools.TRSingleApplication import TRSingleApplicationClient |
39 from eric7.Tools.TRSingleApplication import TRSingleApplicationClient |
39 from eric7.Globals import AppInfo |
|
40 |
|
41 from eric7.Toolbox import Startup |
|
42 |
40 |
43 app = None |
41 app = None |
44 |
42 |
45 |
43 |
46 def createMainWidget(argv): |
44 def createMainWidget(argv): |