From 77c34e2745a6b55f9278f46cddc38cde17499cbe Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Sun, 30 Mar 2025 08:50:50 -0400 Subject: [PATCH] Use .data dir for local testing --- .gitignore | 3 ++- main.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1543466..aee6f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ venv +.venv +.data __pycache__ database.db songs images app.log* - diff --git a/main.py b/main.py index 0f3de7d..e8de3e7 100644 --- a/main.py +++ b/main.py @@ -29,7 +29,7 @@ from yt_dlp import YoutubeDL from yt_dlp.utils import DownloadError DB_VERSION = 4 -DATA_DIR = Path(os.environ["DATA_DIR"]) if "DATA_DIR" in os.environ else Path(".") +DATA_DIR = Path(os.environ["DATA_DIR"]) if "DATA_DIR" in os.environ else Path(".data") SCRIPT_DIR = Path(__file__).parent BGCOLOR = "#e8e6b5" -- 2.39.5