mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 10:18:59 +08:00
Container cfg files need to be parsed without interpolation
CURA-4701
This commit is contained in:
parent
2986a17c1d
commit
c6cdc1d1db
@ -179,7 +179,7 @@ class VersionUpgrade30to31(VersionUpgrade):
|
||||
if not os.path.isfile(file_path):
|
||||
continue
|
||||
|
||||
parser = configparser.ConfigParser()
|
||||
parser = configparser.ConfigParser(interpolation = None)
|
||||
try:
|
||||
parser.read([file_path])
|
||||
except:
|
||||
@ -213,7 +213,7 @@ class VersionUpgrade30to31(VersionUpgrade):
|
||||
|
||||
new_filename = machine_name + "_" + "fdmextruder" + suffix
|
||||
|
||||
extruder_quality_changes_parser = configparser.ConfigParser()
|
||||
extruder_quality_changes_parser = configparser.ConfigParser(interpolation = None)
|
||||
extruder_quality_changes_parser.add_section("general")
|
||||
extruder_quality_changes_parser["general"]["version"] = str(2)
|
||||
extruder_quality_changes_parser["general"]["name"] = global_quality_changes["general"]["name"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user