def is_local(path):
 if (not running_under_virtualenv()):
  return True
 return normalize_path(path).startswith(normalize_path(sys.prefix))

def is_local ( path ) : if ( not running_under_virtualenv ( ) ) : return True return normalize_path ( path ) . startswith ( normalize_path ( sys . prefix ) )
determine if the given ip address refers to this machine or not .