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

Template filename on Windows may have altsep #1637

Closed
davidism opened this issue Mar 25, 2022 · 0 comments
Closed

Template filename on Windows may have altsep #1637

davidism opened this issue Mar 25, 2022 · 0 comments
Labels
Milestone

Comments

@davidism
Copy link
Member

#1621 fixed an issue with template names that look like special Windows paths by always using posixpath.join on the path parts. However, this made the final name have a mix of os.sep and os.altsep, which might mess up textual comparisons. After safely joining the path, it should be normalized again with os.path.normpath.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant