How do I run a .sh file using subprocess.run on a Windows computer?

Hey guys,

I am trying to run a script with a button on my Streamlit dashboard. Because I have a windows computer, Streamlit does not seem to properly run my .sh script, so I have to specifically create a .bat file for Streamlit to run the script properly. I would much rather using my .sh file as it is simpler, and I was wondering if there was a way to using the subprocess.run command.

Thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.