environment/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg/pip/locations.py
def virtualenv_no_global():
    """
    Return True if in a venv and no system site packages.
    """
    #this mirrors the logic in virtualenv.py for locating the no-global-site-packages.txt file
    site_mod_dir = os.path.dirname(os.path.abspath(site.__file__))
    no_global_file = os.path.join(site_mod_dir, 'no-global-site-packages.txt')
    if running_under_virtualenv() and os.path.isfile(no_global_file):
        return True
def virtualenv_no_global():
    #this mirrors the logic in virtualenv.py for locating the no-global-site-packages.txt file
    site_mod_dir = os.path.dirname(os.path.abspath(site.__file__))
    no_global_file = os.path.join(site_mod_dir, 'no-global-site-packages.txt')
    if running_under_virtualenv() and os.path.isfile(no_global_file):
        return True
def virtualenv_no_global ( ) : #this mirrors the logic in virtualenv.py for locating the no-global-site-packages.txt file site_mod_dir = os . path . dirname ( os . path . abspath ( site . __file__ ) ) no_global_file = os . path . join ( site_mod_dir , 'no-global-site-packages.txt' ) if running_under_virtualenv ( ) and os . path . isfile ( no_global_file ) : return True
Return True if in a venv and no system site packages.
Return True if in a venv and no system site packages .