Skip to content

Commit 2c5e362

Browse files
committed
Make PYTHONSTARTUP work with bpython-gtk.
1 parent 8555d1d commit 2c5e362

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bpython/gtk_.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,12 +636,10 @@ def main(args=None):
636636
sys.stderr = repl_widget
637637
sys.stdout = repl_widget
638638

639-
# repl.startup()
640-
641639
gobject.idle_add(init_import_completion)
640+
gobject.idle_add(repl_widget.startup)
642641

643642
if not options.socket_id:
644-
# print options.socket_id
645643
parent = gtk.Window()
646644
parent.connect('delete-event', lambda widget, event: gtk.main_quit())
647645

0 commit comments

Comments
 (0)