This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
2015-12-06 18:39:41 +00:00
|
|
|
import subprocess
|
|
|
|
|
2015-12-06 20:49:58 +00:00
|
|
|
|
2015-12-06 18:39:41 +00:00
|
|
|
def call(command):
|
|
|
|
shell = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
|
|
|
|
output, error = shell.communicate()
|
|
|
|
return str(output), error
|