Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Question: How does WinPython allow for relative python path in python scripts "Scripts/*.exe" #941

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

Open
heetbeet opened this issue Mar 5, 2021 · 5 comments
Labels
Procedure Procedure

Comments

@heetbeet
Copy link

heetbeet commented Mar 5, 2021

When I download python from the normal sources and install a library via pip install <program>, any resulting exe file in Scripts has an absolute path as the back-reference to "python.exe", i.e.:

image

Whereas WinPython only has "python.exe" as a back reference:

image

image

How did you manage to accomplish this?

@stonebig
Copy link
Contributor

stonebig commented Mar 5, 2021

See script make-winpython-fix, and make-winpython-movable.

@stonebig
Copy link
Contributor

stonebig commented Mar 5, 2021

It's my only movability technical contribution over Pierre Raybaut original grand design.

@stonebig
Copy link
Contributor

stonebig commented Mar 5, 2021

It's roughly a oneliner i think, not hard for you to replicate in julia or something else

@barbudor
Copy link

Great tip. Many thanks.
If I run make-winpython-movable, I can se that it patches existing EXE.
But does it makes further installation of packages movable or should I run the make-winpython-movable script again for every upgrade/install ?
Thanks for clarifying.

@stonebig
Copy link
Contributor

It patches also THE necessary line of pip package

@stonebig stonebig added the Procedure Procedure label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Procedure Procedure
Projects
None yet
Development

No branches or pull requests

3 participants