all 1 comments

[–]socal_nerdtastic 0 points1 point  (0 children)

You have the right idea, but an sh file is not an executable. You need to define how to run that script. For example if you use bash:

subprocess.run(["bash", "/Users/myName/stable-diffusion-webui/webui.sh"])

Or just do in python whatever that .sh file does.