MCPcopy Create free account
hub / github.com/ipython/ipython / run

Method run

setupbase.py:298–307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

296 )
297
298 def run(self):
299 if sys.platform == 'win32':
300 raise Exception("This doesn't work on Windows.")
301 pkg = os.path.join(os.getcwd(), 'IPython')
302 dest = os.path.join(self.install_dir, 'IPython')
303 if os.path.islink(dest):
304 print('removing existing symlink at %s' % dest)
305 os.unlink(dest)
306 print('symlinking %s -> %s' % (pkg, dest))
307 os.symlink(pkg, dest)
308
309class unsymlink(install):
310 def run(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected