提交 bae1c7be 编写于 作者: C Cleber Rosa

Python 3: detect venv virtual environments too

Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 97f084b3
......@@ -22,7 +22,7 @@ from setuptools import setup, find_packages
VERSION = open('VERSION', 'r').read().strip()
VIRTUAL_ENV = hasattr(sys, 'real_prefix')
VIRTUAL_ENV = (hasattr(sys, 'real_prefix') or 'VIRTUAL_ENV' in os.environ)
def get_dir(system_path=None, virtual_path=None):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册