eric5_plugininstall.py

changeset 2087
795992a5c561
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
equal deleted inserted replaced
2085:b4c1f0b6dac2 2087:795992a5c561
12 12
13 import sys 13 import sys
14 14
15 for arg in sys.argv: 15 for arg in sys.argv:
16 if arg.startswith("--config="): 16 if arg.startswith("--config="):
17 import Utilities 17 import Globals
18 configDir = arg.replace("--config=", "") 18 configDir = arg.replace("--config=", "")
19 Utilities.setConfigDir(configDir) 19 Globals.setConfigDir(configDir)
20 sys.argv.remove(arg) 20 sys.argv.remove(arg)
21 break 21 break
22 22
23 from Utilities import Startup 23 from Globals import AppInfo
24
25 from Toolbox import Startup
24 26
25 27
26 def createMainWidget(argv): 28 def createMainWidget(argv):
27 """ 29 """
28 Function to create the main widget. 30 Function to create the main widget.
41 options = [\ 43 options = [\
42 ("--config=configDir", 44 ("--config=configDir",
43 "use the given directory as the one containing the config files"), 45 "use the given directory as the one containing the config files"),
44 ("", "names of plugins to install") 46 ("", "names of plugins to install")
45 ] 47 ]
46 appinfo = Startup.makeAppInfo(sys.argv, 48 appinfo = AppInfo.makeAppInfo(sys.argv,
47 "Eric5 Plugin Installer", 49 "Eric5 Plugin Installer",
48 "", 50 "",
49 "Plugin installation utility for eric5", 51 "Plugin installation utility for eric5",
50 options) 52 options)
51 res = Startup.simpleAppStartup(sys.argv, 53 res = Startup.simpleAppStartup(sys.argv,

eric ide

mercurial