diff options
Diffstat (limited to 'plugins/XmlMaterialProfile/XmlMaterialProfile.py')
-rw-r--r-- | plugins/XmlMaterialProfile/XmlMaterialProfile.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index f4cef3a46d..2228cd4993 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -20,7 +20,6 @@ from UM.ConfigurationErrorMessage import ConfigurationErrorMessage from cura.CuraApplication import CuraApplication from cura.Machines.ContainerTree import ContainerTree from cura.Machines.VariantType import VariantType -from plugins.XmlMaterialProfile import PluginInfo try: from .XmlMaterialValidator import XmlMaterialValidator @@ -1070,8 +1069,7 @@ class XmlMaterialProfile(InstanceContainer): # This loads the mapping from a file. @classmethod def getProductIdMap(cls) -> Dict[str, List[str]]: - plugin_id = PluginInfo.getInstance().getPluginId() - plugin_path = PluginRegistry.getInstance().getPluginPath(plugin_id) + plugin_path = PluginRegistry.getInstance().getPluginPath("XmlMaterialProfile") product_to_id_file = os.path.join(plugin_path, "product_to_id.json") with open(product_to_id_file, encoding = "utf-8") as f: product_to_id_map = json.load(f) |