May-12-2024, 09:54 AM
Aha! Thanks!
Using python I just get a lot of blurb +
Using python I just get a lot of blurb +
Output:FileNotFoundError: [Errno 2] No such file or directory: 'python'
But if I use python3, it works:sp.run(['python3', '-c', 'import os; print(os.getcwd())'])The above returns:
Output:CompletedProcess(args=['python3', '-c', 'import os; print(os.getcwd())'], returncode=0)