Also reload source code on file changes in installed plugins

This commit is contained in:
shortcutme 2019-08-02 16:19:05 +02:00
parent 713ff17e91
commit c4a3a53be0
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ else:
class DebugReloader:
def __init__(self, paths=["src", "plugins"]):
def __init__(self, paths=None):
if not paths:
paths = ["src", "plugins", config.data_dir + "/__plugins__"]
self.log = logging.getLogger("DebugReloader")
self.last_chaged = 0
self.callbacks = []