Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Windows-compatible code in loggers #166

Closed
pawamoy opened this issue Oct 23, 2020 · 0 comments · Fixed by #172
Closed

Not Windows-compatible code in loggers #166

pawamoy opened this issue Oct 23, 2020 · 0 comments · Fixed by #172
Labels
bug Something isn't working logging Related logging messages

Comments

@pawamoy
Copy link
Member

pawamoy commented Oct 23, 2020

Describe the bug

In https://github.com/pawamoy/mkdocstrings/blob/master/src/mkdocstrings/loggers.py#L107:

return template.filename.rsplit("/templates/", 1)[1]

The forward slashes are not cross-platform 😉

Additional context
We should probably use os.sep instead of / here.

@pawamoy pawamoy added bug Something isn't working logging Related logging messages labels Oct 23, 2020
oprypin added a commit to oprypin/mkdocstrings that referenced this issue Nov 1, 2020
oprypin added a commit to oprypin/mkdocstrings that referenced this issue Nov 1, 2020
oprypin added a commit to oprypin/mkdocstrings that referenced this issue Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working logging Related logging messages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant