diff --git a/Build/python/mtm/util/SystemHelper.py b/Build/python/mtm/util/SystemHelper.py index 9ebfbff99..02521ddc0 100644 --- a/Build/python/mtm/util/SystemHelper.py +++ b/Build/python/mtm/util/SystemHelper.py @@ -191,7 +191,7 @@ def deleteDirectoryWaitIfNecessary(self, dirPath): def deleteDirectory(self, dirPath): dirPath = self._varManager.expand(dirPath) - shutil.rmtree(dirPath) + os.system('rmdir /S /Q "{0}"'.format(dirPath)) def deleteDirectoryIfExists(self, dirPath): dirPath = self._varManager.expand(dirPath) diff --git a/Build/python/mtm/zen/CreateRelease.py b/Build/python/mtm/zen/CreateRelease.py index d005d9ec6..d16f9aee7 100644 --- a/Build/python/mtm/zen/CreateRelease.py +++ b/Build/python/mtm/zen/CreateRelease.py @@ -146,7 +146,6 @@ def _createCSharpPackage(self, includeSample, outputPath): self._createUnityPackage('[PackageTempDir]', outputPath) finally: - time.sleep(0.5) self._sys.deleteDirectory('[PackageTempDir]') def _createUnityPackage(self, projectPath, outputPath):