From 709370b2198e09f1dbe195fe8813602a3125b7f6 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Wed, 8 Sep 2021 23:29:05 -0700 Subject: Add doctests to some of this stuff. --- misc_utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc_utils.py') diff --git a/misc_utils.py b/misc_utils.py index a4757bd..fc1d5c2 100644 --- a/misc_utils.py +++ b/misc_utils.py @@ -2,5 +2,7 @@ import os + def is_running_as_root() -> bool: + """Returns True if running as root.""" return os.geteuid() == 0 -- cgit v1.3