Issue
Using poetry run to run scripts fails on some scripts. I think this is probably in cases where the script has no file extension. The linked pyproject.toml installs scons into the virtual environment. Scons comes with a script called scons which is installed in the Scripts directory. The following error occurs when running the script:
c:\Projects\personal\poetry-scons-issue>poetry run scons
[FileNotFoundError]
[WinError 2] The system cannot find the file specified
Running poetry venv info to get path/to/venv and running scons with the explicit path works fine
> path\to\venv\Scripts\scons
scons: *** No SConstruct file found.
......
scons also comes with a script called scons.bat which does the same thing. poetry run scons.bat does work
-vvvoption).Issue
Using poetry run to run scripts fails on some scripts. I think this is probably in cases where the script has no file extension. The linked pyproject.toml installs scons into the virtual environment. Scons comes with a script called
sconswhich is installed in theScriptsdirectory. The following error occurs when running the script:Running
poetry venv infoto get path/to/venv and running scons with the explicit path works finescons also comes with a script called
scons.batwhich does the same thing.poetry run scons.batdoes work