mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Ensure that installing files works on non Windows os'es as well
CURA-4222
This commit is contained in:
parent
679c7dcfda
commit
6d40882bdc
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ class PluginBrowser(QObject, Extension):
|
||||||
def installPlugin(self, file_path):
|
def installPlugin(self, file_path):
|
||||||
if not file_path.startswith("/"):
|
if not file_path.startswith("/"):
|
||||||
location = "/" + file_path # Ensure that it starts with a /, as otherwise it doesn't work on windows.
|
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)
|
result = PluginRegistry.getInstance().installPlugin("file://" + location)
|
||||||
|
|
||||||
self._newly_installed_plugin_ids.append(result["id"])
|
self._newly_installed_plugin_ids.append(result["id"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue