Show More
@@ -404,6 +404,9 b' class InteractiveShellApp(Configurable):' | |||||
404 | fname = self.file_to_run |
|
404 | fname = self.file_to_run | |
405 | if os.path.isdir(fname): |
|
405 | if os.path.isdir(fname): | |
406 | fname = os.path.join(fname, "__main__.py") |
|
406 | fname = os.path.join(fname, "__main__.py") | |
|
407 | if not os.path.exists(fname): | |||
|
408 | self.log.warning("File '%s' doesn't exist", fname) | |||
|
409 | self.exit(2) | |||
407 | try: |
|
410 | try: | |
408 | self._exec_file(fname, shell_futures=True) |
|
411 | self._exec_file(fname, shell_futures=True) | |
409 | except: |
|
412 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now