Allow using pdm run
to run a command not on PATH
#2217
Labels
⭐ enhancement
Improvements for existing features
pdm run
to run a command not on PATH
#2217
Is your feature request related to a problem? Please describe.
At the moment if I want to run a script with environment variables
PDM_PROJECT_ROOT
,VIRTUAL_ENV
, or any from the_.env_file
line in[tool.pdm.scripts]
section inpyproject.toml
, I cannot do this. E.g.:Describe the solution you'd like
It would be nice if PDM checked if the command is an absolute or relative path and ran it directly in that case, without a
PATH
lookup. I have no opinion on what to do if it's both a local file and a command on PATH; any of "display an error on conflict", "prefer one or the other", or "require the path to have at least one separator for the local command to run" (i.e. requirepdm run ./build.sh
and disallowpdm run build.sh
) are fine with me.The text was updated successfully, but these errors were encountered: