In the code below I am trying to create certain groups of apps I can start through typing a certain number in the input field. The problem I am facing is that the apps (in this case Firefox) are closing after the python script is finished with executing. Is there a way to start an .exe file without the program exiting together with the script?
import subprocess
app_group_choice = int(input('Enter app group to open: '))
def Apps_school():
subprocess.call(r"C:\Program Files\Mozilla Firefox\firefox.exe")
print("Ok")
if app_group_choice == 1:
Apps_school()