-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
A more convenient pdm run
#856
Comments
If you enabled PEP 582 in your shell, you can just run You won't be able to directly call the scripts installed in |
Yep. I just don't generally enable this in my shell. |
Oh, OK 😊 Out of complete curiosity, why is that? |
A couple of reasons. My shell configs are a bit weird, having accumulated a lot of cruft over the decades. I also like to keep my shell environment tightly controlled. While I like the idea of PEP 582, I'm still a bit leery as to the security implications of it, especially with |
I see, thanks! |
How about |
The question was about |
Is your feature request related to a problem? Please describe.
I often find myself wanting to just fire up a Python interactive prompt using pdm's
__pypackages__
insys.path
. I believe the way to do that is withpdm run python
(at least, that works for me. But maybe we can be a little more convenient or discoverable. I admit this is a pretty minor convenience, so I don't mind if you close as Won't Fix.Describe the solution you'd like
What if
pdm run
with no command were equivalent to running interactively the Python specified bypdm use
? If you wanted to do anything more clever (e.g.pdm run python -c "whatever"
) you'd have to do that explicitly of course.The text was updated successfully, but these errors were encountered: