eric5_webbrowser.py

changeset 945
8cd4d08fa9f6
parent 896
f855351d5e98
child 1232
ed31e909cf2e
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
30 sys.path.insert(2, os.path.join(os.path.dirname(__file__), "ThirdParty", "Pygments")) 30 sys.path.insert(2, os.path.join(os.path.dirname(__file__), "ThirdParty", "Pygments"))
31 31
32 from Utilities import Startup 32 from Utilities import Startup
33 import Utilities 33 import Utilities
34 34
35
35 def createMainWidget(argv): 36 def createMainWidget(argv):
36 """ 37 """
37 Function to create the main widget. 38 Function to create the main widget.
38 39
39 @param argv list of commandline parameters (list of strings) 40 @param argv list of commandline parameters (list of strings)
52 try: 53 try:
53 home = argv[1] 54 home = argv[1]
54 except IndexError: 55 except IndexError:
55 home = "" 56 home = ""
56 57
57 help = HelpWindow(home, '.', None, 'help viewer', searchWord = searchWord) 58 help = HelpWindow(home, '.', None, 'help viewer', searchWord=searchWord)
58 return help 59 return help
60
59 61
60 def main(): 62 def main():
61 """ 63 """
62 Main entry point into the application. 64 Main entry point into the application.
63 """ 65 """
64 options = [\ 66 options = [\
65 ("--config=configDir", 67 ("--config=configDir",
66 "use the given directory as the one containing the config files"), 68 "use the given directory as the one containing the config files"),
67 ("--search=word", "search for the given word") 69 ("--search=word", "search for the given word")
68 ] 70 ]
69 appinfo = Startup.makeAppInfo(sys.argv, 71 appinfo = Startup.makeAppInfo(sys.argv,
70 "Eric5 web browser", 72 "Eric5 web browser",
71 "file", 73 "file",

eric ide

mercurial