You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After thinking about this a little bit I think I'd like to do the following:
Create a watchers subpackage containing a Watcher baseclass.
Create a watchdog implementation of the Watcher API.
Import a Watcher implementation in the api.watch function just prior to use.
This would concentrate the point of failure in a single location making it easier to manage. It would also allow us to create fallback implementations.
A QT Watcher would probably make more sense than watchdog as we can be somewhat sure that QT would be available in a project using qtsass. There's one issue here in that the QFileSystemWatcher is actually pretty incomplete. It doesn't handle recursive directory watching and requires a QApplication event loop to work at all if I remember correctly.
We could also write a simple polling Watcher that polls the filesystem in a thread checking modified times of files and folders. This is roughly equivalent to watchdogs fallback Observer. If we went this route we could eliminate watchdog as a dependency entirely.
I think I have some bandwidth to put together a wip PR for this tomorrow. At the bare minimum tackling the first 3 steps I listed above.
Heya! Just for clearing up all the things discussed:
What needs to happen there? You mean just like
'watchdog'
That aint all right?
The text was updated successfully, but these errors were encountered: