eric5_pluginuninstall.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.
40 """ 42 """
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 ] 46 ]
45 appinfo = Startup.makeAppInfo(sys.argv, 47 appinfo = AppInfo.makeAppInfo(sys.argv,
46 "Eric5 Plugin Uninstaller", 48 "Eric5 Plugin Uninstaller",
47 "", 49 "",
48 "Plugin uninstallation utility for eric5", 50 "Plugin uninstallation utility for eric5",
49 options) 51 options)
50 res = Startup.simpleAppStartup(sys.argv, 52 res = Startup.simpleAppStartup(sys.argv,

eric ide

mercurial