I am trying to run a shell script in Spyder (Python 3.8). I have tried the following and all this is giving me the same error - Invalid Syntax
bash ./filename.sh
bash filename.sh
sh filename.sh
sh ./filename.sh
shell ./filename.sh
shell filename.sh
import subprocess subprocess.run(.\filename.sh)
source filename.sh
9.
import subprocess
subprocess.run(filename.sh)
The last one gives the error:
name 'filename' doesn't exist.
Note: I have rechecked my pwd.