From 26ac765735050eb13399b99b58404e9ebfac5639 Mon Sep 17 00:00:00 2001 From: iainsgillis Date: Sun, 30 Dec 2018 15:37:09 -0700 Subject: [PATCH] escape path separator in repl --- conda_build/convert.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conda_build/convert.py b/conda_build/convert.py index 30b23e272d..a6605989c6 100644 --- a/conda_build/convert.py +++ b/conda_build/convert.py @@ -230,7 +230,8 @@ def update_lib_path(path, target_platform, temp_dir=None): elif target_platform == 'unix': python_version = retrieve_python_version(temp_dir) - renamed_lib_path = re.sub('\ALib', os.path.join('lib', python_version), path.replace('\\', '\\\\')) + lib_python_version = os.path.join('lib', python_version).replace('\\', '\\\\') + renamed_lib_path = re.sub('\ALib', lib_python_version, path.replace('\\', '\\\\')) return os.path.normpath(renamed_lib_path)