Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a76c902 commit cdf726bCopy full SHA for cdf726b
1 file changed
pre_commit/main.py
@@ -1,6 +1,7 @@
1
from __future__ import unicode_literals
2
3
import argparse
4
+import os
5
import sys
6
7
import pkg_resources
@@ -15,6 +16,13 @@
15
16
from pre_commit.runner import Runner
17
18
19
+# https://github.com/pre-commit/pre-commit/issues/217
20
+# On OSX, making a virtualenv using pyvenv at . causes `virtualenv` and `pip`
21
+# to install packages to the wrong place. We don't want anything to deal with
22
+# pyvenv
23
+os.environ.pop('__PYVENV_LAUNCHER__', None)
24
+
25
26
def main(argv=None):
27
argv = argv if argv is not None else sys.argv[1:]
28
parser = argparse.ArgumentParser()
0 commit comments