mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Fix import
Didn't see this due to the sea of errors that it gives. Contributes to issue CURA-844.
This commit is contained in:
parent
a87e756a42
commit
39212a601e
1 changed files with 2 additions and 1 deletions
|
@ -73,6 +73,8 @@ class Profile:
|
||||||
# \return A serialised form of this profile, serialised in version 2 of
|
# \return A serialised form of this profile, serialised in version 2 of
|
||||||
# the file format.
|
# the file format.
|
||||||
def export(self):
|
def export(self):
|
||||||
|
import VersionUpgrade21to22 # Import here to prevent circular dependencies.
|
||||||
|
|
||||||
config = configparser.ConfigParser(interpolation = None)
|
config = configparser.ConfigParser(interpolation = None)
|
||||||
|
|
||||||
config.add_section("general")
|
config.add_section("general")
|
||||||
|
@ -92,7 +94,6 @@ class Profile:
|
||||||
if self._material_name and self._type != "material":
|
if self._material_name and self._type != "material":
|
||||||
config.set("general", "material", self._material_name)
|
config.set("general", "material", self._material_name)
|
||||||
|
|
||||||
import VersionUpgrade21to22 # Import here to prevent circular dependencies.
|
|
||||||
if self._settings:
|
if self._settings:
|
||||||
VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateSettings(self._settings)
|
VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateSettings(self._settings)
|
||||||
config.add_section("settings")
|
config.add_section("settings")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue