Show More
@@ -388,6 +388,8 b' class InteractiveShellApp(Configurable):' | |||||
388 | # Like Python itself, ignore the second if the first of these is present |
|
388 | # Like Python itself, ignore the second if the first of these is present | |
389 | elif self.file_to_run: |
|
389 | elif self.file_to_run: | |
390 | fname = self.file_to_run |
|
390 | fname = self.file_to_run | |
|
391 | if os.path.isdir(fname): | |||
|
392 | fname = os.path.join(fname, "__main__.py") | |||
391 | try: |
|
393 | try: | |
392 | self._exec_file(fname, shell_futures=True) |
|
394 | self._exec_file(fname, shell_futures=True) | |
393 | except: |
|
395 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now