move root inside importable package space

This commit is contained in:
evilchili 2022-12-21 22:42:36 -08:00
parent 3c32ee3b52
commit 58c7e3246a
6 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ _reinstall_hint = "You might need to reinstall Groove On Demand to fix this erro
def root(): def root():
devroot = os.environ.get('GROOVE_ON_DEMAND_DEVROOT', None) path = Path(__file__).parent.expanduser().absolute() / Path('static')
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)