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

default to shutil.which('python') for executable option #6

Open
merwok opened this issue Nov 30, 2021 · 1 comment
Open

default to shutil.which('python') for executable option #6

merwok opened this issue Nov 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@merwok
Copy link

merwok commented Nov 30, 2021

Is your feature request related to a problem? Please describe.
I tried out pypi-changes in a project virtualenv and had to pass the explicit path to the python executable, when I expected that the program would just work in the context of my current virtualenv (like pipdeptree, pip and other tools).

Describe the solution you'd like
The program could have a useful default of looking for the path of the python executable using shutil.which when no parameter is given for the PYTHON_EXE parameter.

People are already used to typing only python or python3 to refer to the executable of the currently-activated virtualenv, or to refer to the system/global install when not in a virtualenv.

Describe alternatives you've considered
pypi-changes python would be a little nicer than pypi-changes $(which python).
Explicit in that I type the python executable name, convenient because I don’t need to do which if the program does it for me.

Additional context

@gaborbernat
Copy link
Owner

A PR in this scope would be welcome 👍

@gaborbernat gaborbernat added the enhancement New feature or request label Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants