eric5_snap.py

changeset 2087
795992a5c561
parent 1770
c17e67e69ef5
child 2302
f29e9405c851
equal deleted inserted replaced
2085:b4c1f0b6dac2 2087:795992a5c561
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.
41 """ 43 """
42 options = [\ 44 options = [\
43 ("--config=configDir", 45 ("--config=configDir",
44 "use the given directory as the one containing the config files"), 46 "use the given directory as the one containing the config files"),
45 ] 47 ]
46 appinfo = Startup.makeAppInfo(sys.argv, 48 appinfo = AppInfo.makeAppInfo(sys.argv,
47 "Eric5 Snap", 49 "Eric5 Snap",
48 "", 50 "",
49 "Simple utility to do snapshots of the screen.", 51 "Simple utility to do snapshots of the screen.",
50 options) 52 options)
51 res = Startup.simpleAppStartup(sys.argv, 53 res = Startup.simpleAppStartup(sys.argv,

eric ide

mercurial