parameters: ()
docstring: Return True if in a venv and no system site packages.
docstring_summary: Return True if in a venv and no system site packages.
docstring_tokens: Return True if in a venv and no system site packages .
function: def virtualenv_no_global():
      # type: () -> bool
      """
      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
      else:
          return False
function_tokens: def virtualenv_no_global ( ) : # type: () -> bool # 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 else : return False