19
19
from spyderlib.utils import encoding
20
from spyderlib.utils.programs import split_clo
20
21
from spyderlib.config import get_icon
21
from spyderlib.widgets.externalshell import (ExternalShellBase,
22
add_pathlist_to_PYTHONPATH)
22
from spyderlib.widgets.externalshell.baseshell import (ExternalShellBase,
23
add_pathlist_to_PYTHONPATH)
23
24
from spyderlib.widgets.shell import TerminalWidget
26
27
class ExternalSystemShell(ExternalShellBase):
27
28
"""External Shell widget: execute Python script in a separate process"""
28
29
SHELL_CLASS = TerminalWidget
29
def __init__(self, parent=None, wdir=None, path=[]):
30
def __init__(self, parent=None, wdir=None, path=[], light_background=True,
31
menu_actions=None, show_buttons_inside=True,
32
show_elapsed_time=True):
30
33
ExternalShellBase.__init__(self, parent, wdir,
31
history_filename='.history_ec')
34
history_filename='.history',
35
light_background=light_background,
36
menu_actions=menu_actions,
37
show_buttons_inside=show_buttons_inside,
38
show_elapsed_time=show_elapsed_time)
33
40
# Additional python path list