Submitter | Augie Fackler |
---|---|
Date | June 8, 2017, 2:52 p.m. |
Message ID | <510ffdb1a28bf8acab7e.1496933529@augie-macbookpro2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/21246/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -634,3 +634,12 @@ def has_zstd(): @check("devfull", "/dev/full special file") def has_dev_full(): return os.path.exists('/dev/full') + +@check("virtualenv", "Python virtualenv support") +def has_virtualenv(): + try: + import virtualenv + virtualenv.ACTIVATE_SH + return True + except ImportError: + return False