Unverified Commit 5e7f7853 authored by John Zhu's avatar John Zhu Committed by GitHub
Browse files

fix regex bugs in Widows paths (#513)

parent 95a9728c
......@@ -111,6 +111,7 @@ class Config:
config_file = f.read()
for key, value in support_templates.items():
regexp = r'\{\{\s*' + str(key) + r'\s*\}\}'
value = value.replace('\\', '/')
config_file = re.sub(regexp, value, config_file)
with open(temp_config_name, 'w') as tmp_config_file:
tmp_config_file.write(config_file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment