libinstaller/lib/shell.py

6 lines
146 B
Python
Raw Normal View History

import subprocess
import sys
def get_from_command(command):
ret = subprocess.check_output(command).decode(sys.stdout.encoding)
return ret