fixing root for dev vs installed

This commit is contained in:
evilchili 2022-12-21 22:35:40 -08:00
parent 6b53b11f0e
commit 3c32ee3b52

View File

@ -9,7 +9,8 @@ _reinstall_hint = "You might need to reinstall Groove On Demand to fix this erro
def root(): 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}") logging.debug(f"Root is {path}")
return Path(path) return Path(path)