diff options
Diffstat (limited to 'src/onaptests/utils/resources.py')
-rw-r--r-- | src/onaptests/utils/resources.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/onaptests/utils/resources.py b/src/onaptests/utils/resources.py index 46c6c6e..71e56d6 100644 --- a/src/onaptests/utils/resources.py +++ b/src/onaptests/utils/resources.py @@ -5,6 +5,14 @@ import onaptests def get_resource_location(relative_path: str): + """Get location of resource files. + + Arguments: + relative_path (str): relative path of the resource + + Returns: + full_path (Path): full path of the resource + """ return os.path.join(os.path.dirname(os.path.realpath(onaptests.__file__)), relative_path) |