MCPcopy Index your code
hub / github.com/ipython/ipython / check_startup_dir

Method check_startup_dir

IPython/core/profiledir.py:126–140  ·  view source on GitHub ↗
(self, change=None)

Source from the content-addressed store, hash-verified

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):

Callers 1

check_dirsMethod · 0.95

Calls 3

_mkdirMethod · 0.95
get_ipython_package_dirFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected