diff --git a/kayobe/utils.py b/kayobe/utils.py
index 77cf3b18a1e9554a4180d00cf12ff802f29464ad..509e9f507b8f838736b2504091771d7ec579a83b 100644
--- a/kayobe/utils.py
+++ b/kayobe/utils.py
@@ -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):