On this page
numpy.DataSource.abspath
method
DataSource.abspath(self, path)[source]-
Return absolute path of file in the DataSource directory.
If
pathis an URL, thenabspathwill return either the location the file exists locally or the location it would exist when opened using theopenmethod.Parameters: -
path : str -
Can be a local file or a remote URL.
Returns: -
out : str -
Complete path, including the
DataSourcedestination directory.
Notes
The functionality is based on
os.path.abspath. -
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.DataSource.abspath.html