question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stonebigcommented, Aug 20, 2021

It patches also THE necessary line of pip package

0reactions
barbudorcommented, Aug 20, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found