1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-18 16:50:42 +01:00
2017-10-25 19:31:03 +02:00

16 lines
342 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 Exception:
return None