bundles / astropy latest / astropy / utils / data / get_pkg_data_path
function
astropy.utils.data:get_pkg_data_path
source: /astropy/utils/data.py :989
Signature
def get_pkg_data_path ( * path , package = None ) Summary
Get path from source-included data directories.
Parameters
*path: strName/location of the desired data file/directory. May be a tuple of strings for
os.pathjoining.package: str or None, optional, keyword-onlyIf specified, look for a file relative to the given package, rather than the calling module's package.
Returns
path: strName/location of the desired data file/directory.
Raises
: ImportErrorGiven package or module is not importable.
: RuntimeErrorIf the local data file is outside of the package's tree.
Aliases
-
astropy.utils.data.get_pkg_data_path