expand_path

Contents

expand_path#

expand_path(filename)[source]#

Get the full file path, including the config path if necessary.

If the input filename does not specifically include a directory, it is looked for in the default PACKAGE_PATH.joinpath("config") directory.

Parameters:

filename (str) – File name.

Returns:

str or pathlib.Path – filename itself if it includes a directory, otherwise the path to filename in PACKAGE_PATH.joinpath("config").