Skip to content

fix: ensure dirname(config_file_path) is not empty - #45

Merged
pawamoy merged 2 commits into
mkdocstrings:masterfrom
hofaflo:fix-chdir
Nov 19, 2022
Merged

fix: ensure dirname(config_file_path) is not empty#45
pawamoy merged 2 commits into
mkdocstrings:masterfrom
hofaflo:fix-chdir

Conversation

@hofaflo

@hofaflo hofaflo commented Nov 19, 2022

Copy link
Copy Markdown
Contributor

Using os.chdir to switch to the directory containing the config file (introduced in #43) fails if config_file_path only contains a filename but no directories (similar to timvink/mkdocs-table-reader-plugin#16). Replacing an empty result of os.dirname should avoid this.

@pawamoy

pawamoy commented Nov 19, 2022

Copy link
Copy Markdown
Member

Argh, I guess I botched a release. Fine, let's fix that again.
Thanks for the report and fix 🙂

@pawamoy
pawamoy merged commit 34cfa4b into mkdocstrings:master Nov 19, 2022
@pawamoy

pawamoy commented Nov 19, 2022

Copy link
Copy Markdown
Member

v0.8.2 released 😓

@hofaflo

hofaflo commented Nov 19, 2022

Copy link
Copy Markdown
Contributor Author

Thanks for the super quick fix and release! :)

@hofaflo
hofaflo deleted the fix-chdir branch November 19, 2022 22:36
viktorlashchuk added a commit to viktorlashchuk/mkdocstrings-python that referenced this pull request Feb 24, 2025
PR #45: mkdocstrings/python#45
Co-authored-by: Timothée Mazzucotelli <pawamoy@pm.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants