Rev4176, Fix update of plugins

This commit is contained in:
shortcutme 2019-08-13 21:07:26 +02:00
parent 1d7e0c47dd
commit 7801937f74
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.7.0"
self.rev = 4175
self.rev = 4176
self.argv = argv
self.action = None
self.pending_changes = {}

View File

@ -62,7 +62,7 @@ def update():
continue
# Keep plugin disabled/enabled status
match = re.match("plugins/([^/]+)", dest_path)
match = re.match(re.escape(source_path) + "/plugins/([^/]+)", dest_path)
if match:
plugin_name = match.group(1).replace("disabled-", "")
if plugin_name in plugins_enabled: # Plugin was enabled
@ -112,4 +112,4 @@ def update():
if __name__ == "__main__":
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) # Imports relative to src
update()
update()