Question: Allow local executable #2267
-
I want to use an executable in a local folder, [testenv:test]
setenv =
# add tool to path
PATH = {env:PWD}/bin:{env:PATH}
allowlist_externals = *
commands =
# doesn't work
tool --version
# works
{env:PWD}/bin/tool --version does not work, only with absolute path. Adding the folder to PATH outside tox works, however it would be preferable if those adjustments could be done within this config file. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
PWD is not defined. You'd likely want to use |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast reply and moving to Discussions. With Thanks for the pointer to |
Beta Was this translation helpful? Give feedback.
Thanks for the fast reply and moving to Discussions. With
PATH = {toxinidir}/bin:{env:PATH}
I have the sameERROR: InvocationError for command could not find executable tool
:/.echo {env:PATH}
shows in both cases the correct one.Thanks for the pointer to
{/}
. Not relevant here, but useful in another project.