Browse Source

cache function: get lock file path

master
Nils 2 years ago
parent
commit
f7f933738e
  1. 2
      engine/nsmservercontrol.py

2
engine/nsmservercontrol.py

@ -42,6 +42,7 @@ from datetime import datetime
from sys import exit as sysexit
from time import sleep
from ctypes import c_ulong
from functools import lru_cache
#Our files
from .comparedirectories import md5_dir
@ -1429,6 +1430,7 @@ class NsmServerControl(object):
return hashAddress % 65521
@lru_cache(maxsize=128)
def _get_lock_file_name(self, session_name:str, full_absolute_session_path:str) -> pathlib.Path:
"""This is a translation from the nsm/nsmd.c function of the same name.
We use it to find the lock file on our system.

Loading…
Cancel
Save