diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-14 09:24:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-14 09:29:30 +0300 |
commit | 8cc1a68d733762ad6baaec439360a84ab8450d3a (patch) | |
tree | 169a30655a64fd2a312734d9aa0d2a7a9d10ef55 /subplot/daemon.py | |
parent | e34beeecfc807bd3afb9d5b6c2c764fd71027cde (diff) | |
download | ewww-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.py | 3 |
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}") |