projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Stop trying to cache mac addresses from house and cabin in the same
[python_utils.git]
/
misc_utils.py
diff --git
a/misc_utils.py
b/misc_utils.py
index a4757bd3a0f6b37a1111b320ec907c9aea5f6592..fc1d5c28e86c5201ec25a800c93f4ce749578402 100644
(file)
--- 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