Skip to content

Commit 030c834

Browse files
committed
Try to run wizard on start of bpython.cli
1 parent d48d5e0 commit 030c834

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bpython/cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
# This for keys
6060
from bpython.keys import key_dispatch
6161

62+
# This for the wizard
63+
from bpython import wizard
64+
6265
from bpython.pager import page
6366
from bpython.repl import Interpreter, Repl
6467
import bpython.args
@@ -1581,6 +1584,8 @@ def main(args=None, locals_=None, banner=None):
15811584

15821585
config, options, exec_args = bpython.args.parse(args)
15831586

1587+
wizard.main()
1588+
15841589
# Save stdin, stdout and stderr for later restoration
15851590
orig_stdin = sys.stdin
15861591
orig_stdout = sys.stdout

bpython/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ def run_wizard():
9191

9292
print answers
9393

94-
if __name__ == '__main__':
94+
def main():
9595
if is_first_run():
9696
run_wizard()

0 commit comments

Comments
 (0)