INNER CODE UNIT · Python

error

loxy0devlp/RedTiger-Tools · Config/Utils.py:160

    def error(self, message):
        print()
        Error(f"Error: {white + message}")
        Info(f"Use {white}--help{red} or {white}-h{red} to see the available options.")
        Reset()

def IsAdmin():
    if os_name == "Windows":
        try: return ctypes.windll.shell32.IsUserAnAdmin() != 0
        except: return False
    elif os_name == "Linux":
        try: return os.geteuid() == 0
        except: return False

def RunSpeed(state, ctx, json_data, keys, func):
    result = func()
    *values, json_format = result
    for k, v in zip(keys, values): ctx[k] = v

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…