From af7f6c9367ab7e05d3d47a907fa81265a4418375 Mon Sep 17 00:00:00 2001 From: pks Date: Mon, 10 May 2021 19:42:59 +0200 Subject: fix --- weather-logger-receiver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'weather-logger-receiver') 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())) -- cgit v1.2.3