1) The example above works well but it does not open a terminal window.
import os
directory = os.path.join(os.path.join(os.path.expanduser('~')), 'Desktop')
os.chdir(directory+'/aaaa')
command = os.popen('npm install && gulp watch')
print(command.read())
print(command.close())
2) I found something like that but it does not work on macOS, I tried to change cmd by terminal and other but it does not work.
import os
command = "cmd"
os.system(command)
My goal is to launch a terminal to send orders, is it possible? If yes, how? Do you have some ideas to follow?