DataSource.abspath()

numpy.DataSource.abspath

DataSource.abspath(path) [source]

Return absolute path of file in the DataSource directory.

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

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.

© 2008–2016 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.DataSource.abspath.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部