Fix call to configparser.options

It needs to have the section from which to read the options.

Contributes to issue CURA-37.
This commit is contained in:
Ghostkeeper 2015-12-18 09:01:22 +01:00
parent abb92afc27
commit 166c8a3048

View file

@ -34,7 +34,7 @@ class LegacyProfileReader(ProfileReader):
# profile. # profile.
def prepareLocals(self, parser, section): def prepareLocals(self, parser, section):
locals = {} locals = {}
for option in parser.options(): for option in parser.options(section):
locals[option] = parser.get(section, option) locals[option] = parser.get(section, option)
return locals return locals