mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:35:58 +08: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
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user