Repository navigation
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 --versiondoes 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? |
Replies: 3 comments 5 replies
|
PWD is not defined. You'd likely want to use |
|
Thanks for the fast reply and moving to Discussions. With Thanks for the pointer to |
|
Closing due to inactivity. The fix is to use setenv =
PATH = {toxinidir}{/}bin:{env:PATH}Feel free to reopen if still relevant. |
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.