if platform.system() != "Windows":
ret.append(os.path.expanduser('~/.cura/plugins/'))
if platform.system() == "Darwin" and hasattr(sys, 'frozen'):
- ret.append(os.path.normpath(os.path.join(resources.resourceBasePath, "Cura/plugins")))
+ ret.append(os.path.normpath(os.path.join(resources.resourceBasePath, "plugins")))
else:
- ret.append(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'plugins')))
+ ret.append(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'plugins')))
return ret
def getPluginList():
except:
resourceBasePath = os.path.join(os.path.dirname(__file__), "../../../../../")
else:
- resourceBasePath = os.path.join(os.path.dirname(__file__), "../resources")
-else:
- if hasattr(sys, 'frozen'):
resourceBasePath = os.path.join(os.path.dirname(__file__), "../../resources")
- else:
- resourceBasePath = os.path.join(os.path.dirname(__file__), "../resources")
+else:
+ resourceBasePath = os.path.join(os.path.dirname(__file__), "../../resources")
def getPathForResource(dir, subdir, resource_name):
assert os.path.isdir(dir), "{p} is not a directory".format(p=dir)