13 |
13 |
14 import sys |
14 import sys |
15 |
15 |
16 for arg in sys.argv: |
16 for arg in sys.argv: |
17 if arg.startswith("--config="): |
17 if arg.startswith("--config="): |
18 import Utilities |
18 import Globals |
19 configDir = arg.replace("--config=", "") |
19 configDir = arg.replace("--config=", "") |
20 Utilities.setConfigDir(configDir) |
20 Globals.setConfigDir(configDir) |
21 sys.argv.remove(arg) |
21 sys.argv.remove(arg) |
22 break |
22 break |
23 |
23 |
24 from Utilities import Startup |
24 from Globals import AppInfo |
|
25 |
|
26 from Toolbox import Startup |
25 |
27 |
26 |
28 |
27 def createMainWidget(argv): |
29 def createMainWidget(argv): |
28 """ |
30 """ |
29 Function to create the main widget. |
31 Function to create the main widget. |
48 """ |
50 """ |
49 options = [\ |
51 options = [\ |
50 ("--config=configDir", |
52 ("--config=configDir", |
51 "use the given directory as the one containing the config files"), |
53 "use the given directory as the one containing the config files"), |
52 ] |
54 ] |
53 appinfo = Startup.makeAppInfo(sys.argv, |
55 appinfo = AppInfo.makeAppInfo(sys.argv, |
54 "Eric5 SQL Browser", |
56 "Eric5 SQL Browser", |
55 "connection", |
57 "connection", |
56 "SQL browser", |
58 "SQL browser", |
57 options) |
59 options) |
58 res = Startup.simpleAppStartup(sys.argv, |
60 res = Startup.simpleAppStartup(sys.argv, |