-
Notifications
You must be signed in to change notification settings - Fork 44
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
%HOMEPATH% does not contain the drive name #211
Comments
There are two (not mutually exclusive) ways to go about this:
I think the latter should definitely be done. Whether I do think we should definitely implement the second point though. In that case, you could set |
Wouldn't that work anyway? The rendering is delayed until execution, but Windows then does it. At least, that is what I manually tested by manipulating the shortcut. If you want me to contribute a PR here, please let me know. |
For the execution, yes, but looking at this issue, I found a small bug that creates and unwanted directory : https://github.com/conda/menuinst/blob/main/menuinst/platforms/win.py#L161-L162 I think from what I'm reading
You are welcome to do so if you have the time. I just assigned the issue to myself to fix it, but I'm happy to have you take over. Just let me know so we don't interfere with each other. |
If you're on it already, it sure is more efficient for you to do it. I just wanted to express my willingness to contribute. |
Checklist
What happened?
In the absence of the
working_dir
key, on Windows,menuinst
uses%HOMEPATH%
as the default. However, I have stumbled over this on a system, where the home was not on theC:
drive. In order to also get the drive, one would need to use%HOMEDRIVE%
. When googling to find a solution, I also stumbled over a number of reports that these two variables may not be set in some circumstances.I would therefore suggest to maybe use
%USERPROFILE%
for that purpose. Apparently, it is always set to a full path.Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: