From c69043c502044994840e246d8c4926a15b7d2bdb Mon Sep 17 00:00:00 2001 From: William Deegan Date: Sun, 12 Apr 2020 19:37:01 -0700 Subject: We're all py3 now can use exist_ok=True on os.mkdirs(). Thanks mwichmann --- src/engine/SCons/Tool/MSCommon/vcTests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/SCons/Tool/MSCommon/vcTests.py b/src/engine/SCons/Tool/MSCommon/vcTests.py index 884e90e..eb09def 100644 --- a/src/engine/SCons/Tool/MSCommon/vcTests.py +++ b/src/engine/SCons/Tool/MSCommon/vcTests.py @@ -48,8 +48,7 @@ MS_TOOLS_VERSION='1.1.1' class VswhereTestCase(unittest.TestCase): @staticmethod def _createVSWhere(path): - if not os.path.isdir(os.path.dirname(path)): - os.makedirs(os.path.dirname(path)) + os.makedirs(os.path.dirname(path), exist_ok=True) with open(path, 'w') as f: f.write("Created:%s"%f) -- cgit v0.12