May-12-2024, 07:57 AM
The strange thing in your error is that Popen does not find the 'python' command. Does 'python' work in a terminal or do you have to use 'python3' ?
Try these commands for example
Try these commands for example
>>> import subprocess as sp >>> sp.run(['python', '-c', 'import os; print(os.getcwd())']) ??? >>> sp.run(['python', '-c', 'import os; print(os.getcwd())'], cwd='generators/run') ???and the same with 'python3'
« We can solve any problem by introducing an extra level of indirection »