-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fixes #3055 Uninstall causes paths to exceed MAX_PATH limit #6029
Conversation
(Obviously this is not ready to merge yet.) |
@pradyunsg @dstufft @pfmoore I think this is ready. I split out the install stage changes to #6030 because I have a question about the direction to take that. |
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.
LGTM.
self.path = os.path.realpath(path) | ||
break | ||
|
||
if not self.path: |
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 can be a for-else; though I'm not sure if that's best for readability.
for candidate in ...:
try:
...
except:
...
else:
...
break
else:
self.path = os.path.realpath(...)
Waiting on @dstufft to hit merge? |
I don't usually merge PRs when I am not super active in the original discussion. There's always a chance that I misunderstand the discussion - obviously, I want to avoid acting based on that. ;) |
So, yes. Or @pfmoore. |
Thanks, Paul! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #3055 Uninstall causes paths to exceed MAX_PATH limit
Moves files to adjacent directory to avoid creating a deeper path when uninstalling.