eric5_iconeditor.py

changeset 2087
795992a5c561
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
equal deleted inserted replaced
2085:b4c1f0b6dac2 2087:795992a5c561
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.
50 options = [\ 52 options = [\
51 ("--config=configDir", 53 ("--config=configDir",
52 "use the given directory as the one containing the config files"), 54 "use the given directory as the one containing the config files"),
53 ("", "name of file to edit") 55 ("", "name of file to edit")
54 ] 56 ]
55 appinfo = Startup.makeAppInfo(sys.argv, 57 appinfo = AppInfo.makeAppInfo(sys.argv,
56 "Eric5 Icon Editor", 58 "Eric5 Icon Editor",
57 "", 59 "",
58 "Little tool to edit icon files.", 60 "Little tool to edit icon files.",
59 options) 61 options)
60 res = Startup.simpleAppStartup(sys.argv, 62 res = Startup.simpleAppStartup(sys.argv,

eric ide

mercurial