replace watchdog with active polling thread

watchdog does not work on windows. For some
reason file modification events are not
emitted.
Fixed by replacing watchdog with a thread
that polls the modification date ever 0.5s.

Also fixed a bug that the hit view was not
properly destructed.
This commit is contained in:
2025-04-06 09:34:08 +02:00
parent bcd525d787
commit d36724f3e7
7 changed files with 15 additions and 44 deletions

View File

@@ -18,9 +18,7 @@ arguments = [
'--add-binary', 'changelog.txt' + os.pathsep + '.',
'--add-binary', 'version.txt' + os.pathsep + '.',
'--hidden-import=krowlog',
'--hidden-import=watchdog',
'--hidden-import=watchdog.observers',
'--hidden-import=watchdog.version',
'--hidden-import=__future__',
'--hidden-import=configparser'
]