From 9c295184d3efbaff6d24d656f503f3ee1fb380b8 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 12 Apr 2020 17:57:00 -0700 Subject: fix vcTests.py creating already existing dir on win32 --- src/engine/SCons/Tool/MSCommon/vcTests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/MSCommon/vcTests.py b/src/engine/SCons/Tool/MSCommon/vcTests.py index 3474887..884e90e 100644 --- a/src/engine/SCons/Tool/MSCommon/vcTests.py +++ b/src/engine/SCons/Tool/MSCommon/vcTests.py @@ -48,7 +48,8 @@ MS_TOOLS_VERSION='1.1.1' class VswhereTestCase(unittest.TestCase): @staticmethod def _createVSWhere(path): - os.makedirs(os.path.dirname(path)) + if not os.path.isdir(os.path.dirname(path)): + os.makedirs(os.path.dirname(path)) with open(path, 'w') as f: f.write("Created:%s"%f) -- cgit v0.12