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
Raw Normal View History

import subprocess
2015-12-06 20:49:58 +00:00
def call(command):
shell = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
output, error = shell.communicate()
return str(output), error