INNER CODE UNIT · Python

LogColors

KnifeXRage/Godot-Secure · Godot Secure Scripts/universal/Godot Secure Camellia-256 Universal v6.py:11

class LogColors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'
    
def get_godot_version(path):
    if os.path.isdir(path):
        path = os.path.join(path, "version.py")

    version = {}
    with open(path, encoding="utf-8") as f:
        exec(f.read(), {}, version)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…