diff options
author | pks <pks@pks.rocks> | 2021-05-10 19:42:59 +0200 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-05-10 19:42:59 +0200 |
commit | af7f6c9367ab7e05d3d47a907fa81265a4418375 (patch) | |
tree | f600070cacced1a10d129d2ff6b20afd98df8e6b | |
parent | d48f7cb6557b8c80b0b920284ef709da3a56646e (diff) |
fix
-rwxr-xr-x | weather-logger-receiver | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weather-logger-receiver b/weather-logger-receiver index fd0c8e4..209c961 100755 --- a/weather-logger-receiver +++ b/weather-logger-receiver @@ -78,7 +78,7 @@ def write_pid_file(pid_file_path, logger): pid = pid_file.read() logger.error(f"Possibly already running with PID {pid}, exiting") sys.exit(1) - with open(path, "w") as pid_file: + with open(pid_file_path, "w") as pid_file: pid_file.write(str(os.getpid())) |