-2

I want to implement a python function to execute a bash command. for example:

def run_command():
# run 'python test --a' command

1 Answers1

0

Is this what you're looking for?

import subprocess
subprocess.call("--command here--")
burntchowmein
  • 355
  • 2
  • 13