()
Returns the path of an image viewer on the given platform.

    Deprecated since igraph 0.9.1 and will be removed in 0.10.0.

    @deprecated: This function was only used by the now-deprecated C{show()}
        method of the Plot class.
Returns the path of an image viewer on the given platform.
Returns the path of an image viewer on the given platform .
def get_platform_image_viewer():
    """Returns the path of an image viewer on the given platform.

    Deprecated since igraph 0.9.1 and will be removed in 0.10.0.

    @deprecated: This function was only used by the now-deprecated C{show()}
        method of the Plot class.
    """
    plat = platform.system()
    if plat == "Darwin":
        # Most likely Mac OS X
        return "open"
    elif plat == "Linux":
        # Linux has a whole lot of choices, try to find one
        choices = [
            "eog",
            "gthumb",
            "gqview",
            "kuickshow",
            "xnview",
            "display",
            "gpicview",
            "gwenview",
            "qiv",
            "gimv",
            "ristretto",
            "geeqie",
            "eom",
        ]
        paths = ["/usr/bin", "/bin"]
        for path in paths:
            for choice in choices:
                full_path = os.path.join(path, choice)
                if os.path.isfile(full_path):
                    return full_path
        return ""
    elif plat == "FreeBSD":
        # FreeBSD also has a whole lot of choices, try to find one
        choices = [
            "eog",
            "gthumb",
            "geeqie",
            "display",
            "gpicview",
            "gwenview",
            "qiv",
            "gimv",
            "ristretto",
            "geeqie",
            "eom",
        ]
        paths = ["%%LOCALBASE%%/bin"]
        for path in paths:
            for choice in choices:
                full_path = os.path.join(path, choice)
                if os.path.isfile(full_path):
                    return full_path
        return ""
    elif plat == "Windows" or plat == "Microsoft":  # Thanks to Dale Hunscher
        # Use the built-in Windows image viewer, if available
        return "start"
    else:
        # Unknown system
        return ""
def get_platform_image_viewer ( ) : plat = platform . system ( ) if plat == "Darwin" : # Most likely Mac OS X return "open" elif plat == "Linux" : # Linux has a whole lot of choices, try to find one choices = [ "eog" , "gthumb" , "gqview" , "kuickshow" , "xnview" , "display" , "gpicview" , "gwenview" , "qiv" , "gimv" , "ristretto" , "geeqie" , "eom" , ] paths = [ "/usr/bin" , "/bin" ] for path in paths : for choice in choices : full_path = os . path . join ( path , choice ) if os . path . isfile ( full_path ) : return full_path return "" elif plat == "FreeBSD" : # FreeBSD also has a whole lot of choices, try to find one choices = [ "eog" , "gthumb" , "geeqie" , "display" , "gpicview" , "gwenview" , "qiv" , "gimv" , "ristretto" , "geeqie" , "eom" , ] paths = [ "%%LOCALBASE%%/bin" ] for path in paths : for choice in choices : full_path = os . path . join ( path , choice ) if os . path . isfile ( full_path ) : return full_path return "" elif plat == "Windows" or plat == "Microsoft" : # Thanks to Dale Hunscher # Use the built-in Windows image viewer, if available return "start" else : # Unknown system return ""