New watchdog module based file change watching

This commit is contained in:
shortcutme 2019-03-16 02:42:43 +01:00
parent 75d8338f2d
commit e92f3ea100
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
5 changed files with 41 additions and 42 deletions

View file

@ -25,7 +25,7 @@ class PluginManager:
if config.debug: # Auto reload Plugins on file change
from Debug import DebugReloader
DebugReloader(self.reloadPlugins)
DebugReloader.watcher.addCallback(self.reloadPlugins)
def migratePlugins(self):
for dir_name in os.listdir(self.plugin_path):