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 <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-07-18 14:51:58 +02:00 committed by Lars Karlitski
parent b218430bfa
commit 8994e7f803

View file

@ -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"