Question: How does WinPython allow for relative python path in python scripts "Scripts/*.exe"
See original GitHub issueWhen 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.:
Whereas WinPython only has “python.exe” as a back reference:
How did you manage to accomplish this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Question: How does WinPython allow for relative python path in ...
When I download python from the normal sources and install a library via pip install <program> , any resulting exe file in Scripts...
Read more >How to get a relative path in Python | Towards the Cloud
To get a relative path in Python you first have to find the location of the working directory where the script or module...
Read more >Relative paths in Python [duplicate] - Stack Overflow
I do have a relative path from the script but when I call the script it treats that as a path relative to...
Read more >Simple trick to work with relative paths in Python | by Mike Huls
The trick is to define a variable that calculate the absolute path to our root in a file and then import this variable...
Read more >How to add Python to Windows PATH - Data to Fish
How to add Python to Windows PATH · Via the installation of a recent version of Python; Manual entry of the paths ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It patches also THE necessary line of pip package
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 themake-winpython-movable
script again for every upgrade/install ? Thanks for clarifying.