##// END OF EJS Templates
Don't crash if README_STARTUP is missing...
Jussi Sainio -
Show More
@@ -102,7 +102,11 b' class ProfileDir(LoggingConfigurable):'
102 os.mkdir(self.startup_dir)
102 os.mkdir(self.startup_dir)
103 readme = os.path.join(self.startup_dir, 'README')
103 readme = os.path.join(self.startup_dir, 'README')
104 src = os.path.join(get_ipython_package_dir(), u'config', u'profile', u'README_STARTUP')
104 src = os.path.join(get_ipython_package_dir(), u'config', u'profile', u'README_STARTUP')
105 if not os.path.exists(readme):
105
106 if not os.path.exists(src):
107 self.log.warn("Could not copy README_STARTUP to startup dir. Source file %s does not exist." % src)
108
109 if os.path.exists(src) and not os.path.exists(readme):
106 shutil.copy(src, readme)
110 shutil.copy(src, readme)
107
111
108 def _security_dir_changed(self, name, old, new):
112 def _security_dir_changed(self, name, old, new):
General Comments 0
You need to be logged in to leave comments. Login now