Skip to content

Commit cecd6f7

Browse files
committed
Revert "Do not throw if PYTHONSTARTUPFILE does not exists (fixes bpython#438)"
This reverts commit 3a86eae.
1 parent 01b98f1 commit cecd6f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ def startup(self):
415415
self.interp.runsource(f.read(), filename, 'exec')
416416
else:
417417
self.interp.runsource(f.read(), filename, 'exec')
418+
else:
419+
raise IOError("Python startup file (PYTHONSTARTUP) not found at %s" % filename)
418420

419421
def clean_up_current_line_for_exit(self):
420422
"""Called when trying to exit to prep for final paint"""

0 commit comments

Comments
 (0)