diff options
| author | Scott Gasch <[email protected]> | 2021-09-08 23:29:05 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-09-08 23:29:05 -0700 |
| commit | 709370b2198e09f1dbe195fe8813602a3125b7f6 (patch) | |
| tree | 5bbe521d7973f86526ed09d4411a5b3ff0e23aaa /misc_utils.py | |
| parent | b10d30a46e601c9ee1f843241f2d69a1f90f7a94 (diff) | |
Add doctests to some of this stuff.
Diffstat (limited to 'misc_utils.py')
| -rw-r--r-- | misc_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
