yt_de_study/common.py

8 lines
155 B
Python
Raw Permalink Normal View History

2020-09-06 17:36:01 +02:00
import os
def run_os_cmd(command, should_print=True):
if should_print:
print(command)
output = os.popen(command).read()
return output