-
Notifications
You must be signed in to change notification settings - Fork 54
Support in tree hooks (pyproject.toml backend-path key) #46
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
Conversation
@takluyver I believe that's all the review comments addressed. Sorry it took so long. Are there any other issues you think need addressing? |
if self.backend_path: | ||
backend_path = os.pathsep.join(self.backend_path) | ||
if sys.version_info[0] == 2: | ||
backend_path = backend_path.encode(sys.getfilesystemencoding()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may fail if a Unix filesystem erroneously reports that it's ASCII and someone tries to use a non-ASCII path. But I don't know what the correct thing to do on Python 2 in that case is (Python 3 has os.fsencode()
). So we may as well cross our fingers and hope people use either Python 3 or plain ASCII paths.
Thanks, I think it looks good. |
No description provided.