1
Fork 0
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.
dotfile-automator/project/utils/shell.py

8 lines
183 B
Python

import subprocess
def call(command):
shell = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
output, error = shell.communicate()
return str(output), error