-2

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

def run_command():
# run 'python test --a' command
Arian Shariat
  • 35
  • 2
  • 6

1 Answers1

0

Is this what you're looking for?

import subprocess
subprocess.call("--command here--")
burntchowmein
  • 474
  • 1
  • 4
  • 16