move root inside importable package space
This commit is contained in:
parent
3c32ee3b52
commit
58c7e3246a
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user