eric6_shell.py

changeset 6581
8eb6220f2bb7
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6580:082d58e2415e 6581:8eb6220f2bb7
11 of the ShellWindow module and starts the Qt event loop. 11 of the ShellWindow module and starts the Qt event loop.
12 """ 12 """
13 13
14 from __future__ import unicode_literals 14 from __future__ import unicode_literals
15 15
16 import sys
17 import os
18
19 originalPathString = os.getenv("PATH")
20
16 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__ 21 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__
17 22
18 try: # Only for Py2 23 try: # Only for Py2
19 import Globals.compatibility_fixes # __IGNORE_WARNING__ 24 import Globals.compatibility_fixes # __IGNORE_WARNING__
20 except (ImportError): 25 except (ImportError):
21 pass 26 pass
22
23 import sys
24 import os
25 27
26 for arg in sys.argv[:]: 28 for arg in sys.argv[:]:
27 if arg.startswith("--config="): 29 if arg.startswith("--config="):
28 import Globals 30 import Globals
29 configDir = arg.replace("--config=", "") 31 configDir = arg.replace("--config=", "")
50 @param argv list of commandline parameters (list of strings) 52 @param argv list of commandline parameters (list of strings)
51 @return reference to the main widget (QWidget) 53 @return reference to the main widget (QWidget)
52 """ 54 """
53 from QScintilla.ShellWindow import ShellWindow 55 from QScintilla.ShellWindow import ShellWindow
54 56
55 return ShellWindow() 57 return ShellWindow(originalPathString)
56 58
57 59
58 def main(): 60 def main():
59 """ 61 """
60 Main entry point into the application. 62 Main entry point into the application.

eric ide

mercurial