do not open same file twice
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user