From 553358fb0a77902c03e8740ba42cba66abb590ae Mon Sep 17 00:00:00 2001 From: Fedor Gogolev Date: Sun, 13 Dec 2015 19:35:07 +0300 Subject: [PATCH] Update daemon_uid_gid.py --- tests/daemon_uid_gid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/daemon_uid_gid.py b/tests/daemon_uid_gid.py index 1234946..f61aea0 100644 --- a/tests/daemon_uid_gid.py +++ b/tests/daemon_uid_gid.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from os import getuid, geteuid, getgid, getegid +from os import getuid, geteuid, getgid, getegid, path from sys import argv from time import sleep @@ -17,7 +17,7 @@ def main(): f.write(" ".join(map(str, uids + gids))) -group = "nogroup" if os.path.exists("/etc/debian_version") else "nobody" +group = "nogroup" if path.exists("/etc/debian_version") else "nobody" daemon = Daemonize(app="test_app", pid=pid, action=main, user="nobody", group=group) daemon.start()