From 3c32ee3b528b37f7f4cb4ce3f58cf94634070a45 Mon Sep 17 00:00:00 2001 From: evilchili Date: Wed, 21 Dec 2022 22:35:40 -0800 Subject: [PATCH] fixing root for dev vs installed --- groove/path.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groove/path.py b/groove/path.py index e2db3b2..06eeccc 100644 --- a/groove/path.py +++ b/groove/path.py @@ -9,7 +9,8 @@ _reinstall_hint = "You might need to reinstall Groove On Demand to fix this erro def root(): - path = Path(__file__).parent.parent + devroot = os.environ.get('GROOVE_ON_DEMAND_DEVROOT', None) + path = (Path(devroot) if devroot else Path(__file__).parent).expanduser().absolute() logging.debug(f"Root is {path}") return Path(path)