diff options
-rwxr-xr-x | service.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -233,7 +233,9 @@ def str2bool(v: Union[str, bool, int]) -> bool: if __name__ == "__main__": - lock_file_path = os.path.join(tempfile.gettempdir(), "rwa-session-service.lock") + lock_dir_path = os.path.join(tempfile.gettempdir(), "rwa-session-service") + os.makedirs(lock_dir_path, exist_ok=True) + lock_file_path = os.path.join(lock_dir_path, "rwa-session-service.lock") # Check for lock file if os.path.exists(lock_file_path): |