libinstaller/lib/shell.py

7 lines
147 B
Python
Raw Normal View History

import subprocess
import sys
2022-09-22 01:51:47 +02:00
def get_from_command(command):
ret = subprocess.check_output(command).decode(sys.stdout.encoding)
return ret