eric5_trpreviewer.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 E5Gui.E5Application import E5Application 25 from E5Gui.E5Application import E5Application
26 26
27 from Tools.TRSingleApplication import TRSingleApplicationClient 27 from Tools.TRSingleApplication import TRSingleApplicationClient
28 from Utilities import Startup 28 from Globals import AppInfo
29
30 from Toolbox import Startup
29 31
30 32
31 def createMainWidget(argv): 33 def createMainWidget(argv):
32 """ 34 """
33 Function to create the main widget. 35 Function to create the main widget.
52 """ 54 """
53 options = [\ 55 options = [\
54 ("--config=configDir", 56 ("--config=configDir",
55 "use the given directory as the one containing the config files"), 57 "use the given directory as the one containing the config files"),
56 ] 58 ]
57 appinfo = Startup.makeAppInfo(sys.argv, 59 appinfo = AppInfo.makeAppInfo(sys.argv,
58 "Eric5 TR Previewer", 60 "Eric5 TR Previewer",
59 "file", 61 "file",
60 "TR file previewer", 62 "TR file previewer",
61 options) 63 options)
62 64

eric ide

mercurial