Also reload source code on file changes in installed plugins
This commit is contained in:
parent
713ff17e91
commit
c4a3a53be0
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ else:
|
||||||
|
|
||||||
|
|
||||||
class DebugReloader:
|
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.log = logging.getLogger("DebugReloader")
|
||||||
self.last_chaged = 0
|
self.last_chaged = 0
|
||||||
self.callbacks = []
|
self.callbacks = []
|
||||||
|
|
Loading…
Reference in a new issue