##// END OF EJS Templates
add PYTHONSTARTUP to startup files...
MinRK -
Show More
@@ -300,7 +300,10 b' class InteractiveShellApp(Configurable):'
300 def _run_startup_files(self):
300 def _run_startup_files(self):
301 """Run files from profile startup directory"""
301 """Run files from profile startup directory"""
302 startup_dir = self.profile_dir.startup_dir
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 startup_files += glob.glob(os.path.join(startup_dir, '*.ipy'))
307 startup_files += glob.glob(os.path.join(startup_dir, '*.ipy'))
305 if not startup_files:
308 if not startup_files:
306 return
309 return
General Comments 0
You need to be logged in to leave comments. Login now