Skip to content

Commit

Permalink
fix pickup of dir-parameter from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
fnep committed Feb 3, 2025
1 parent 6ab33d8 commit 0a92f18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: uv run pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml

- name: Upload pytest test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
Expand Down
4 changes: 2 additions & 2 deletions mtv_dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ def setup(
help="Use certifi instead of builtin SSL certificates.",
),
] = False,
db_dir: Annotated[
dir: Annotated[ # noqa: A002
Path | None,
typer.Option(
"--dir",
Expand Down Expand Up @@ -1662,7 +1662,7 @@ def setup(
logger.setLevel(logging.INFO)

# temp file and download config
cw_dir = Path(db_dir).expanduser().absolute() if db_dir else Path.cwd()
cw_dir = Path(dir).expanduser().absolute() if dir else Path.cwd()
cw_dir.mkdir(parents=True, exist_ok=True)
chdir(cw_dir)
tempfile.tempdir = cw_dir.as_posix()
Expand Down

0 comments on commit 0a92f18

Please sign in to comment.