INNER CODE UNIT · Python
Continue
loxy0devlp/RedTiger-Tools · Config/Utils.py:155
def Continue():
if version_interface and not has_cli_args: Input("Press to continue -> ")
else: return
class RedTigerArgumentParser(argparse.ArgumentParser):
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