Show More
@@ -300,7 +300,10 b' class InteractiveShellApp(Configurable):' | |||
|
300 | 300 | def _run_startup_files(self): |
|
301 | 301 | """Run files from profile startup directory""" |
|
302 | 302 | startup_dir = self.profile_dir.startup_dir |
|
303 | startup_files = glob.glob(os.path.join(startup_dir, '*.py')) | |
|
303 | startup_files = [] | |
|
304 | if os.environ.get('PYTHONSTARTUP', False): | |
|
305 | startup_files.append(os.environ['PYTHONSTARTUP']) | |
|
306 | startup_files += glob.glob(os.path.join(startup_dir, '*.py')) | |
|
304 | 307 | startup_files += glob.glob(os.path.join(startup_dir, '*.ipy')) |
|
305 | 308 | if not startup_files: |
|
306 | 309 | return |
General Comments 0
You need to be logged in to leave comments.
Login now