Fix last return value in _get_base_path

The return value was set to the following path which is not valid:

    kayobe/kayobe/utils.py/..

The intent must have been to use dirname to produce:

    kayobe/kayobe/..

Change-Id: I9d7d71d42026f3c12da6de9c5ca55dc647554fd0
This commit is contained in:
Pierre Riteau 2023-09-25 18:43:07 +02:00
parent 1847ad3f17
commit 810e021d8b

View File

@ -90,7 +90,7 @@ def _get_base_path():
return os.path.join(prefix, "share", "kayobe")
# Assume uninstalled
return os.path.join(os.path.realpath(__file__), "..")
return os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")
def galaxy_role_install(role_file, roles_path, force=False):