parameters: (path)
return_statement: return normalize_path(path).startswith(normalize_path(sys.prefix))
docstring: Return True if path is within sys.prefix, if we're running in a virtualenv.
  
      If we're not in a virtualenv, all paths are considered "local."
docstring_summary: Return True if path is within sys.prefix, if we're running in a virtualenv.
docstring_tokens: Return True if path is within sys . prefix if we re running in a virtualenv .
function: def is_local(path):
      # type: (str) -> bool
      """
      Return True if path is within sys.prefix, if we're running in a virtualenv.
  
      If we're not in a virtualenv, all paths are considered "local."
  
      """
      if not running_under_virtualenv():
          return True
      return normalize_path(path).startswith(normalize_path(sys.prefix))
function_tokens: def is_local ( path ) : # type: (str) -> bool if not running_under_virtualenv ( ) : return True return normalize_path ( path ) . startswith ( normalize_path ( sys . prefix ) )