Skip to content

Commit 0a92f18

Browse files
committed
fix pickup of dir-parameter from config file
1 parent 6ab33d8 commit 0a92f18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: uv run pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml
3232

3333
- name: Upload pytest test results
34-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: pytest-results-${{ matrix.python-version }}
3737
path: junit/test-results-${{ matrix.python-version }}.xml

mtv_dl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ def setup(
16041604
help="Use certifi instead of builtin SSL certificates.",
16051605
),
16061606
] = False,
1607-
db_dir: Annotated[
1607+
dir: Annotated[ # noqa: A002
16081608
Path | None,
16091609
typer.Option(
16101610
"--dir",
@@ -1662,7 +1662,7 @@ def setup(
16621662
logger.setLevel(logging.INFO)
16631663

16641664
# temp file and download config
1665-
cw_dir = Path(db_dir).expanduser().absolute() if db_dir else Path.cwd()
1665+
cw_dir = Path(dir).expanduser().absolute() if dir else Path.cwd()
16661666
cw_dir.mkdir(parents=True, exist_ok=True)
16671667
chdir(cw_dir)
16681668
tempfile.tempdir = cw_dir.as_posix()

0 commit comments

Comments
 (0)