diff options
author | Steve Dower <steve.dower@microsoft.com> | 2018-07-26 11:23:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 11:23:10 (GMT) |
commit | 5473f061f518aef5367a535999a407305fb12aff (patch) | |
tree | 5bfea76abc92213f7aa001a33812efeb5d41311f /Lib | |
parent | e0d67f17ccb4645ff88c9a018679b8a5b4fe0a7e (diff) | |
download | cpython-5473f061f518aef5367a535999a407305fb12aff.zip cpython-5473f061f518aef5367a535999a407305fb12aff.tar.gz cpython-5473f061f518aef5367a535999a407305fb12aff.tar.bz2 |
bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/_msvccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/_msvccompiler.py b/Lib/distutils/_msvccompiler.py index c9d3c6c..30b3b47 100644 --- a/Lib/distutils/_msvccompiler.py +++ b/Lib/distutils/_msvccompiler.py @@ -252,11 +252,11 @@ class MSVCCompiler(CCompiler) : for dir in vc_env.get('include', '').split(os.pathsep): if dir: - self.add_include_dir(dir) + self.add_include_dir(dir.rstrip(os.sep)) for dir in vc_env.get('lib', '').split(os.pathsep): if dir: - self.add_library_dir(dir) + self.add_library_dir(dir.rstrip(os.sep)) self.preprocess_options = None # If vcruntime_redist is available, link against it dynamically. Otherwise, |