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

Resolve npm path and fnm path on Windows #2015

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Oct 21, 2023

Microsoft App Store versions of python use a sandboxing technique that causes AppData to point to a per-app location via link. However shelling out to powershell or cmd does not seem to respect the sandbox links, so to access the actual files that were installed, we must explicitly .resolve() the paths before formatting them into command lines.

From https://discord.com/channels/1029853095527727165/1164954271737970769/1164954280483115028

Test it out

pip install git+https://github.com/reflex-dev/reflex@masenf/microsoft-store-python

Microsoft App Store versions of python use a sandboxing technique that causes
AppData to point to a per-app location via link. However shelling out to
powershell or cmd does not seem to respect the sandbox links, so to access the
actual files that were installed, we must explicitly `.resolve()` the paths
before formatting them into command lines.
@picklelo picklelo merged commit 91bbf91 into main Oct 23, 2023
37 checks passed
@picklelo picklelo deleted the masenf/microsoft-store-python branch November 1, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants