From 0ab0ef9762689069dd40a37a46cf0d5d06b58ffb Mon Sep 17 00:00:00 2001
From: "R.K.Garcia" <r.keoni@gmail.com>
Date: Mon, 11 Jan 2021 11:40:51 -0600
Subject: [PATCH] Retain forward slash before Libary in prefix Revised for #308
 after 1.1.5 found unviable for win32

---
 build_conda_pack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build_conda_pack.py b/build_conda_pack.py
index e4763706..b7f7c56f 100644
--- a/build_conda_pack.py
+++ b/build_conda_pack.py
@@ -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:
-- 
GitLab