{ } Raw JSON

bundles / numpy 2.4.4 / numpy / lib / _datasource / DataSource / abspath

function

numpy.lib._datasource:DataSource.abspath

source: /numpy/lib/_datasource.py :371

Signature

def   abspath ( self path )

Summary

Return absolute path of file in the DataSource directory.

Extended Summary

If path is an URL, then abspath will return either the location the file exists locally or the location it would exist when opened using the open method.

Parameters

path : str or pathlib.Path

Can be a local file or a remote URL.

Returns

out : str

Complete path, including the DataSource destination directory.

Notes

The functionality is based on os.path.abspath.

Aliases

  • numpy.lib._datasource.DataSource.abspath