{ } Raw JSON

bundles / numpy 2.4.4 / numpy / lib / _datasource / Repository / abspath

function

numpy.lib._datasource:Repository.abspath

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

Signature

def   abspath ( self path )

Summary

Return absolute path of file in the Repository 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. This may, but does not have to, include the baseurl with which the Repository was initialized.

Returns

out : str

Complete path, including the DataSource destination directory.

Aliases

  • numpy.lib._datasource.Repository.abspath