6 lines
146 B
Python
6 lines
146 B
Python
|
import subprocess
|
||
|
import sys
|
||
|
|
||
|
def get_from_command(command):
|
||
|
ret = subprocess.check_output(command).decode(sys.stdout.encoding)
|
||
|
return ret
|