diff --git a/setup/vcvars.py b/setup/vcvars.py index a474ae1123..a731f5327e 100644 --- a/setup/vcvars.py +++ b/setup/vcvars.py @@ -80,7 +80,7 @@ export INCLUDE="%s" export LIBPATH="%s" -'''%(unix(paths), lib, include, libpath) +'''%(unix(paths), lib.replace('\\', r'\\'), include.replace('\\', r'\\'), libpath.replace('\\', r'\\')) with open(os.path.expanduser('~/.vcvars'), 'wb') as f: f.write(raw.encode('utf-8'))