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

Method _path2uri

docs/sphinxext/apigen.py:200–205  ·  view source on GitHub ↗

Convert directory path to uri

(self, dirpath)

Source from the content-addressed store, hash-verified

198 return path
199
200 def _path2uri(self, dirpath):
201 ''' Convert directory path to uri '''
202 relpath = dirpath.replace(self.root_path, self.package_name)
203 if relpath.startswith(os.path.sep):
204 relpath = relpath[1:]
205 return relpath.replace(os.path.sep, '.')
206
207 def _parse_module(self, uri):
208 ''' Parse module defined in *uri* '''

Callers 1

discover_modulesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected