Merge pull request #805 from pre-commit/workaround_brew

Work around sys.executable issue using brew python on macos
This commit is contained in:
Anthony Sottile 2018-07-24 18:28:34 -07:00 committed by GitHub
commit ab556f4dff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,9 @@ import os
import subprocess import subprocess
import sys import sys
# work around https://github.com/Homebrew/homebrew-core/issues/30445
os.environ.pop('__PYVENV_LAUNCHER__', None)
HERE = os.path.dirname(os.path.abspath(__file__)) HERE = os.path.dirname(os.path.abspath(__file__))
Z40 = '0' * 40 Z40 = '0' * 40
ID_HASH = '138fd403232d2ddd5efb44317e38bf03' ID_HASH = '138fd403232d2ddd5efb44317e38bf03'