We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780ff4c commit 47437ebCopy full SHA for 47437eb
mxtool/mx.py
@@ -609,8 +609,11 @@ def _load_env(self, mxDir):
609
for line in f:
610
line = line.strip()
611
if len(line) != 0 and line[0] != '#':
612
- key, value = line.split('=', 1)
613
- os.environ[key.strip()] = expandvars_in_property(value.strip())
+ try:
+ key, value = line.split('=', 1)
614
+ os.environ[key.strip()] = expandvars_in_property(value.strip())
615
+ except:
616
+ abort("mx/env could not be parsed. Make sure that each line contains a line similar to 'key=value'.")
617
618
def _post_init(self, opts):
619
mxDir = join(self.dir, 'mx')
0 commit comments