I want to open an application on my mac computer through pycharm using python. I assume I will need to use some kind of library but I am not sure.
Asked
Active
Viewed 31 times
0
-
2`os.system("open " + app_path)` – OneCricketeer Mar 20 '21 at 14:48
-
@OneCricketeer, great thanks. I will try – Mar 20 '21 at 14:49
-
@OneCricketeer would the code just be os.exec("open" + /user/safari) ? – Mar 20 '21 at 14:51
-
You don't need to use string concatenation if you have a hard-coded string. And you can run the same in a terminal, outside Python, to test it – OneCricketeer Mar 20 '21 at 14:53
-
@OneCricketeer Ok, so I can have it all in one string. – Mar 20 '21 at 14:54