Refactor import paths to use the 'src' directory structure and remove unused workflow inputs

This commit is contained in:
2026-03-18 17:48:54 +02:00
parent c339443fd5
commit 9e5540b89b
11 changed files with 12 additions and 17 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ import shutil
# Make imports robust when running the script directly from different working directories.
# Ensure the repository root and this tests folder are on sys.path so the script can import
# both the package (`ytplaylist`) and local test helpers (`tests.temp_config`).
# both the package (`src`) and local test helpers (`tests.temp_config`).
REPO_ROOT = Path(__file__).resolve().parents[1]
TESTS_DIR = Path(__file__).resolve().parent
if str(REPO_ROOT) not in sys.path:
@@ -46,7 +46,7 @@ if bin_dir.exists():
os.environ.setdefault("ARIA2C_PATH", str(aria2c_path))
print(f"Using local aria2c at: {aria2c_path}")
from ytplaylist.downloader import PlaylistDownloader
from src.downloader import PlaylistDownloader
from tests.dummy_config import DummyConfig
logging.basicConfig(level=logging.INFO, format='%(levelname)s:%(message)s')