summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-04-13 00:57:00 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-04-13 00:57:00 (GMT)
commit9c295184d3efbaff6d24d656f503f3ee1fb380b8 (patch)
tree29c8bdccf9d4b8fb4f725fde0548afa5cf248353
parentc82e9618c97b084f8c385ae55637d3ac6cf2ed2a (diff)
downloadSCons-9c295184d3efbaff6d24d656f503f3ee1fb380b8.zip
SCons-9c295184d3efbaff6d24d656f503f3ee1fb380b8.tar.gz
SCons-9c295184d3efbaff6d24d656f503f3ee1fb380b8.tar.bz2
fix vcTests.py creating already existing dir on win32
-rw-r--r--src/engine/SCons/Tool/MSCommon/vcTests.py3
1 files changed, 2 insertions, 1 deletions
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)