Add K-LOVE support and Podman-friendly container deployment
This commit is contained in:
1 parent
c0ebe118cb
commit
18f777e3e7
19 files changed
+2560
-682
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def get_data_dir() -> Path:
|
||||
data_dir = os.getenv("JOURNEYFM_DATA_DIR", "").strip()
|
||||
if data_dir:
|
||||
path = Path(data_dir)
|
||||
else:
|
||||
path = Path(".")
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
return path
|
||||
|
||||
|
||||
def data_path(*parts: str) -> Path:
|
||||
return get_data_dir().joinpath(*parts)
|
||||
Reference in new issue
Block a user