summaryrefslogtreecommitdiff
path: root/subplot/daemon.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-14 09:24:24 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-14 09:29:30 +0300
commit8cc1a68d733762ad6baaec439360a84ab8450d3a (patch)
tree169a30655a64fd2a312734d9aa0d2a7a9d10ef55 /subplot/daemon.py
parente34beeecfc807bd3afb9d5b6c2c764fd71027cde (diff)
downloadewww-8cc1a68d733762ad6baaec439360a84ab8450d3a.tar.gz
chore: get global symbols via global()
This lets the module be linted on its own, without the extra-Pythonic knowledge that they'll be available when this module is embedded into the test program.
Diffstat (limited to 'subplot/daemon.py')
-rw-r--r--subplot/daemon.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subplot/daemon.py b/subplot/daemon.py
index 585fe5a..c454b9b 100644
--- a/subplot/daemon.py
+++ b/subplot/daemon.py
@@ -9,6 +9,9 @@ import signal
# Start a process in the background.
def start_daemon(ctx, name, argv):
+ runcmd = globals()["runcmd"]
+ exit_code_is = globals()["exit_code_is"]
+
logging.debug(f"Starting daemon {name}")
logging.debug(f" ctx={ctx.as_dict()}")
logging.debug(f" name={name}")