AnonSec Team
Server IP : 161.35.85.9  /  Your IP : 216.73.217.134
Web Server : nginx/1.30.1
System : Linux cheapdeb-ams3 7.0.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.9-1 (2026-05-22) x86_64
User : root ( 0)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/wordpress/../fish/functions/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /usr/share/wordpress/../fish/functions/__fish_anypython.fish
# localization: skip(private)
function __fish_anypython
    if set -l path (command -s python3)
        # Do not consider the stub /usr/bin/python3 that comes installed on Darwin to be Python
        # unless Xcode reports a real directory path.
        and not begin
            string match -q Darwin -- "$(uname)"
            and string match -q /usr/bin/python3 -- $path
            and type -q xcode-select
            and not xcode-select --print-path &>/dev/null
        end
        echo $path
        return 0
    end
    set -l best_path
    set -l best_minor_version
    set -l minor_version
    for path in (path filter -fx -- $PATH/python3.*)
        string match -rq -- '.*/python3\.(?<minor_version>\d+)$' $path
        and test $minor_version -ge 5 # Python 3.5+
        or continue
        and begin
            not set -q best_path[1]
            or test $minor_version -gt $best_minor_version
        end
        set best_path $path
        set best_minor_version $minor_version
    end
    if set -q best_path[1]
        echo $best_path
        return 0
    end
    # We have no python.
    return 1
end

AnonSec - 2021