Commit 0ab0ef97 authored by R.K.Garcia's avatar R.K.Garcia
Browse files

Retain forward slash before Libary in prefix

Revised for #308 after 1.1.5 found unviable for win32
parent 424c54b6
......@@ -70,7 +70,7 @@ def main():
if sys.platform.startswith('win'):
with open(os.path.join(sys.prefix, 'qt.conf'), 'rt') as qtconf:
old_text = qtconf.read()
old_prefix, = tuple(re.findall(r'^Prefix\s*=\s*(.*?)\s*$', old_text, re.MULTILINE))
old_prefix, = tuple(re.findall(r'^Prefix\s*=\s*(.*?).Library\s*$', old_text, re.MULTILINE))
new_prefix = old_prefix.replace('/', '\\')
new_text = old_text.replace(old_prefix, new_prefix)
with open(os.path.join(sys.prefix, 'qt.conf'), 'wt') as qtconf:
......
Supports Markdown
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