diff --git a/util/chplenv/overrides.py b/util/chplenv/overrides.py index 8434defc33f..bcf4a350b18 100755 --- a/util/chplenv/overrides.py +++ b/util/chplenv/overrides.py @@ -184,7 +184,7 @@ def parse(self): if self.skip_line(line, linenum): continue - var, val = [f.strip() for f in line.split('=')] + var, val = [f.strip() for f in line.split('=', maxsplit=1)] self.chplconfig[var] = val def skip_line(self, line, linenum): @@ -198,7 +198,7 @@ def skip_line(self, line, linenum): # Check for syntax errors try: - var, val = [f.strip() for f in line.split('=')] + var, val = [f.strip() for f in line.split('=', maxsplit=1)] except ValueError: self.warnings.append( (