Optionally surface exceptions that happen under executors by reading
[python_utils.git] / misc_utils.py
1 #!/usr/bin/env python3
2
3 import os
4
5
6 def is_running_as_root() -> bool:
7     """Returns True if running as root."""
8     return os.geteuid() == 0