Files
thefuck/thefuck/specific/brew.py
T

16 lines
332 B
Python

import subprocess
from ..utils import memoize, which
brew_available = bool(which('brew'))
@memoize
def get_brew_path_prefix():
"""To get brew path"""
try:
return subprocess.check_output(['brew', '--prefix'],
universal_newlines=True).strip()
except:
return None