diff options
Diffstat (limited to 'weather-logger-receiver')
-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())) |