triggers_single_detector_HM.ensure_abspath#
Back to Module page
Summary#
Ensures that the path to fname is absolute, assumes it is saved in the same directory as config_fname!
Signature#
def ensure_abspath(config_fname, fname)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
Absolute path to config.json file |
||
|
Absolute or relative path to file |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Absolute path to fname |
Docstring#
Ensures that the path to fname is absolute, assumes it is saved
in the same directory as config_fname!
:param config_fname: Absolute path to config.json file
:param fname: Absolute or relative path to file
:return: Absolute path to fname