From 6d40882bdcee9178ac689d6300a46eaffbd016a2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 30 Aug 2017 15:06:08 +0200 Subject: [PATCH] Ensure that installing files works on non Windows os'es as well CURA-4222 --- plugins/PluginBrowser/PluginBrowser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/PluginBrowser/PluginBrowser.py b/plugins/PluginBrowser/PluginBrowser.py index 88d867e3e0..7df020f078 100644 --- a/plugins/PluginBrowser/PluginBrowser.py +++ b/plugins/PluginBrowser/PluginBrowser.py @@ -191,6 +191,8 @@ class PluginBrowser(QObject, Extension): def installPlugin(self, file_path): if not file_path.startswith("/"): location = "/" + file_path # Ensure that it starts with a /, as otherwise it doesn't work on windows. + else: + location = file_path result = PluginRegistry.getInstance().installPlugin("file://" + location) self._newly_installed_plugin_ids.append(result["id"])