From 39212a601e408df59750bea859c7cef6b4a40e69 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 1 Jul 2016 17:35:52 +0200 Subject: [PATCH] Fix import Didn't see this due to the sea of errors that it gives. Contributes to issue CURA-844. --- plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index d5f38585c9..ce6bac4c40 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -73,6 +73,8 @@ class Profile: # \return A serialised form of this profile, serialised in version 2 of # the file format. def export(self): + import VersionUpgrade21to22 # Import here to prevent circular dependencies. + config = configparser.ConfigParser(interpolation = None) config.add_section("general") @@ -92,7 +94,6 @@ class Profile: if self._material_name and self._type != "material": config.set("general", "material", self._material_name) - import VersionUpgrade21to22 # Import here to prevent circular dependencies. if self._settings: VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateSettings(self._settings) config.add_section("settings")