14 |
14 |
15 import sys |
15 import sys |
16 |
16 |
17 for arg in sys.argv: |
17 for arg in sys.argv: |
18 if arg.startswith("--config="): |
18 if arg.startswith("--config="): |
19 import Utilities |
19 import Globals |
20 configDir = arg.replace("--config=", "") |
20 configDir = arg.replace("--config=", "") |
21 Utilities.setConfigDir(configDir) |
21 Globals.setConfigDir(configDir) |
22 sys.argv.remove(arg) |
22 sys.argv.remove(arg) |
23 break |
23 break |
24 |
24 |
25 from Utilities import Startup |
25 from Globals import AppInfo |
|
26 |
|
27 from Toolbox import Startup |
26 |
28 |
27 |
29 |
28 def createMainWidget(argv): |
30 def createMainWidget(argv): |
29 """ |
31 """ |
30 Function to create the main widget. |
32 Function to create the main widget. |
43 """ |
45 """ |
44 options = [\ |
46 options = [\ |
45 ("--config=configDir", |
47 ("--config=configDir", |
46 "use the given directory as the one containing the config files"), |
48 "use the given directory as the one containing the config files"), |
47 ] |
49 ] |
48 appinfo = Startup.makeAppInfo(sys.argv, |
50 appinfo = AppInfo.makeAppInfo(sys.argv, |
49 "Eric5 QRegExp", |
51 "Eric5 QRegExp", |
50 "", |
52 "", |
51 "Regexp editor for Qt's QRegExp class", |
53 "Regexp editor for Qt's QRegExp class", |
52 options) |
54 options) |
53 res = Startup.simpleAppStartup(sys.argv, |
55 res = Startup.simpleAppStartup(sys.argv, |