fixing root for dev vs installed
This commit is contained in:
parent
6b53b11f0e
commit
3c32ee3b52
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user