Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab556f4

Browse files
authored
Merge pull request #805 from pre-commit/workaround_brew
Work around sys.executable issue using brew python on macos
2 parents a3847d8 + 7e69d11 commit ab556f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pre_commit/resources/hook-tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import os
77
import subprocess
88
import sys
99

10+
# work around https://github.com/Homebrew/homebrew-core/issues/30445
11+
os.environ.pop('__PYVENV_LAUNCHER__', None)
12+
1013
HERE = os.path.dirname(os.path.abspath(__file__))
1114
Z40 = '0' * 40
1215
ID_HASH = '138fd403232d2ddd5efb44317e38bf03'

0 commit comments

Comments
 (0)