diff options
author | William Deegan <bill@baddogconsulting.com> | 2020-04-13 02:37:01 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2020-04-13 02:37:01 (GMT) |
commit | c69043c502044994840e246d8c4926a15b7d2bdb (patch) | |
tree | 63029f1bee1ed8de05f04b16d4f14bb685601c89 | |
parent | 9c295184d3efbaff6d24d656f503f3ee1fb380b8 (diff) | |
download | SCons-c69043c502044994840e246d8c4926a15b7d2bdb.zip SCons-c69043c502044994840e246d8c4926a15b7d2bdb.tar.gz SCons-c69043c502044994840e246d8c4926a15b7d2bdb.tar.bz2 |
We're all py3 now can use exist_ok=True on os.mkdirs(). Thanks mwichmann
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vcTests.py | 3 |
1 files changed, 1 insertions, 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) |