ok
Direktori : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/virtualenv.pyc |
� x�_c @@ s� d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z e r� d d l m Z m Z n e j e � Z e j d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d S( i ( t absolute_importN( t MYPY_CHECK_RUNNING( t Listt Optionals8 include-system-site-packages\s*=\s*(?P<value>true|false)c C@ s t j t t d t j � k S( sn Checks if sys.base_prefix and sys.prefix match. This handles PEP 405 compliant virtual environments. t base_prefix( t syst prefixt getattr( ( ( sO /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/virtualenv.pyt _running_under_venv s c C@ s t t d � S( sm Checks if sys.real_prefix is set. This handles virtual environments created with pypa's virtualenv. t real_prefix( t hasattrR ( ( ( sO /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/virtualenv.pyt! _running_under_regular_virtualenv s c C@ s t � p t � S( sG Return True if we're running inside a virtualenv, False otherwise. ( R R ( ( ( sO /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/virtualenv.pyt running_under_virtualenv( s c C@ sc t j j t j d � } y2 t j | d d �� } | j � j � SWd QXWn t k r^ d SXd S( s� Reads {sys.prefix}/pyvenv.cfg and returns its contents as list of lines Returns None, if it could not read/access the file. s pyvenv.cfgt encodings utf-8N( t ost patht joinR R t iot opent readt splitlinest IOErrort None( t pyvenv_cfg_filet f( ( sO /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/utils/virtualenv.pyt _get_pyvenv_cfg_lines/ s c C@ so t � } | d k r&