2024-03-01 01:00:17 -08:00
|
|
|
import os
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
_setup_hint = "You may be able to solve this error by running 'croaker setup' or specifying the --root parameter."
|
2024-03-05 22:21:56 -08:00
|
|
|
_reinstall_hint = "You might need to reinstall Croaker to fix this error."
|
2024-03-01 01:00:17 -08:00
|
|
|
|
|
|
|
|
|
|
|
def root():
|
|
|
|
return Path(os.environ.get("CROAKER_ROOT", "~/.dnd/croaker")).expanduser()
|
|
|
|
|
|
|
|
|
|
|
|
def playlist_root():
|
2024-03-05 22:51:04 -08:00
|
|
|
path = Path(os.environ.get("PLAYLIST_ROOT", root() / "playlists")).expanduser()
|
2024-03-01 01:00:17 -08:00
|
|
|
return path
|