Unverified Commit 3cd4cb54 authored by David Hoese's avatar David Hoese Committed by GitHub
Browse files

Merge pull request #311 from rayg-ssec/308-qtconf-windows-packaging

Retain forward slash before Libary in prefix
parents 43252ded 0ab0ef97
......@@ -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