(self, change=None)
| 124 | |
| 125 | @observe('startup_dir') |
| 126 | def check_startup_dir(self, change=None): |
| 127 | if self._mkdir(self.startup_dir): |
| 128 | readme = os.path.join(self.startup_dir, "README") |
| 129 | src = os.path.join( |
| 130 | get_ipython_package_dir(), "core", "profile", "README_STARTUP" |
| 131 | ) |
| 132 | |
| 133 | if os.path.exists(src): |
| 134 | if not os.path.exists(readme): |
| 135 | shutil.copy(src, readme) |
| 136 | else: |
| 137 | self.log.warning( |
| 138 | "Could not copy README_STARTUP to startup dir. Source file %s does not exist.", |
| 139 | src, |
| 140 | ) |
| 141 | |
| 142 | @observe('security_dir') |
| 143 | def check_security_dir(self, change=None): |
no test coverage detected