-
Notifications
You must be signed in to change notification settings - Fork 1
strip double quote in path #3
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2484,6 +2484,8 @@ def Pchify(self, path, lang): | |
| def Absolutify(self, path): | ||
| """Convert a subdirectory-relative path into a base-relative path. | ||
| Skips over paths that contain variables.""" | ||
| """In MINGW node -p return a path with double quote""" | ||
| path = path.strip('"') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that this is a MINGW-only issue, would there be a way to rewrite as: if on_mingw:
path = path.strip('"')
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kreijstal‘s fork be used for msys2 user,any plan merge to officail repo need to check MINGW platform.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean yes but this branch is also a PR itself |
||
| if "$(" in path: | ||
| # Don't call normpath in this case, as it might collapse the | ||
| # path too aggressively if it features '..'. However it's still | ||
|
|
||
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 string literal acts as a comment, but it's better to use a standard hash (
#) comment for clarity and to follow Python conventions. String literals that are not docstrings or assigned to variables are evaluated and then discarded, which can be slightly less efficient and might be confusing to other developers. I've also slightly rephrased the comment for clarity.