Answers for "python run console command"

23

execute command in python script

import os

os.system("ma Commande")

#Exemple:

os.system("cd Documents")
Posted by: Guest on June-10-2020
2

how to do a console command with python

import subprocess

subprocess.run("Your command here")
Posted by: Guest on August-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language