do not open same file twice

This commit is contained in:
2021-10-26 11:05:07 +02:00
parent 8fc682444d
commit 3b330b2fca
4 changed files with 74 additions and 22 deletions

View File

@@ -10,7 +10,13 @@ class LogFileModel:
_lock = threading.RLock()
def __init__(self, file):
self._file = file
self._file = os.path.realpath(file)
def get_file(self):
return self._file
def __str__(self):
return self._file
def get_tab_name(self):
file_name = os.path.basename(self._file)