Commit 1b5784cf authored by Marco Mariani's avatar Marco Mariani

slapos console: switch default from bpython to ipython (better with Suse)

parent 19ec81a1
...@@ -40,13 +40,13 @@ class ConsoleCommand(ClientConfigCommand): ...@@ -40,13 +40,13 @@ class ConsoleCommand(ClientConfigCommand):
shell = ap.add_mutually_exclusive_group() shell = ap.add_mutually_exclusive_group()
shell.add_argument('-b', '--bpython', shell.add_argument('-i', '--ipython',
action='store_true', action='store_true',
help='Use BPython shell if available (default)') help='Use IPython shell if available (default)')
shell.add_argument('-i', '--ipython', shell.add_argument('-b', '--bpython',
action='store_true', action='store_true',
help='Use IPython shell if available') help='Use BPython shell if available')
shell.add_argument('-p', '--python', shell.add_argument('-p', '--python',
action='store_true', action='store_true',
...@@ -60,7 +60,7 @@ class ConsoleCommand(ClientConfigCommand): ...@@ -60,7 +60,7 @@ class ConsoleCommand(ClientConfigCommand):
local = init(conf) local = init(conf)
if not any([args.python, args.ipython, args.bpython]): if not any([args.python, args.ipython, args.bpython]):
args.bpython = True args.ipython = True
if args.ipython: if args.ipython:
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment