MCPcopy Index your code
hub / github.com/numpy/numpy / _fullpath

Method _fullpath

numpy/lib/_datasource.py:580–587  ·  view source on GitHub ↗

Return complete path for path. Prepends baseurl if necessary.

(self, path)

Source from the content-addressed store, hash-verified

578 DataSource.__del__(self)
579
580 def _fullpath(self, path):
581 """Return complete path for path. Prepends baseurl if necessary."""
582 splitpath = path.split(self._baseurl, 2)
583 if len(splitpath) == 1:
584 result = os.path.join(self._baseurl, path)
585 else:
586 result = path # path contains baseurl already
587 return result
588
589 def _findfile(self, path):
590 """Extend DataSource method to prepend baseurl to ``path``."""

Callers 4

_findfileMethod · 0.95
abspathMethod · 0.95
existsMethod · 0.95
openMethod · 0.95

Calls 2

splitMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected