I have some python code for preprocessing/training . I have a shell script file (sample code below) that i would like to run from my python script.how can i run this script from my python main.py file ? also what file permissions should the my shell script needs to have?
main.py
import os
import subprocess
import venv
venv.create('a_venv', with_pip=True)
##invoke shell script here
somescript.sh
#!/bin/bash
set -e
echo "how to run this"
....do something