Hello!
I was looking for an answer to the question how to run any program from a python script level without knowing the exact path to the program?
Here's an axample:
If I type in my console (console in Spyder or PyCharm)
Open Spotify
Then my program should open Spotify application.
When I was looking for an answer to this question, I only found cases with a specific file location.
Thank you in advance for your time. I'm beginner so sometimes I find it hard to come across to solution.
import subprocessthensubprocess.run("spotify"), because installing Spotify withsudo snap install spotifyadds aspotifyexecutable to my bash PATH.subprocess.runto execute that command. google.com/search?q=run+application+from+cmd+by+name+windows