From 8994e7f8039e993e8ce795cff2f463630eb23f25 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 18 Jul 2019 14:51:58 +0200 Subject: [PATCH] libdir: allow osbulid to be built from the tree This was a regression from when osbuild was made into a module. Restore the old behavior. Signed-off-by: Tom Gundersen --- osbuild/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild/__init__.py b/osbuild/__init__.py index 4603d90f..438eb8c0 100644 --- a/osbuild/__init__.py +++ b/osbuild/__init__.py @@ -23,7 +23,7 @@ RESET = "\033[0m" BOLD = "\033[1m" -libdir = os.path.dirname(__file__) +libdir = os.path.dirname(os.path.dirname(__file__)) if not os.path.exists(f"{libdir}/stages"): libdir = f"{sys.prefix}/lib/osbuild"