Skip to content

Not Windows-compatible code in loggers #166

@pawamoy

Description

@pawamoy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingloggingRelated logging messages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions