I want to implement a python function to execute a bash command. for example:
def run_command():
# run 'python test --a' command
I want to implement a python function to execute a bash command. for example:
def run_command():
# run 'python test --a' command
Is this what you're looking for?
import subprocess
subprocess.call("--command here--")