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

@ -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()