From d94cd0c0759f9f4d2fd97a03aa3b9a5decdf958d Mon Sep 17 00:00:00 2001 From: Daid Date: Fri, 21 Dec 2012 12:00:26 +0100 Subject: [PATCH] Fix for plugins in MacOS --- Cura/util/profile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 76703195..869dd4eb 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -8,6 +8,7 @@ if sys.version_info[0] < 3: else: import configparser as ConfigParser +from Cura.util import resources from Cura.util import version ######################################################### @@ -552,7 +553,10 @@ def getPluginBasePaths(): ret = [] if platform.system() != "Windows": ret.append(os.path.expanduser('~/.cura/plugins/')) - ret.append(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'plugins'))) + if platform.system() == "Darwin" and hasattr(sys, 'frozen'): + ret.append(os.path.normpath(os.path.join(resources.resourceBasePath, "Cura/plugins"))) + else: + ret.append(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'plugins'))) return ret def getPluginList(): -- 2.30.2