From 6d9b38c62af6bd199a5c62fe8afb62337d562038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Wed, 1 Apr 2020 16:29:19 +0200 Subject: [PATCH] wait for folder to be deleted should fix issues with existing folder on windows --- scripts/run_cmake.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/run_cmake.py b/scripts/run_cmake.py index 4f5cc6c..0aed602 100755 --- a/scripts/run_cmake.py +++ b/scripts/run_cmake.py @@ -22,6 +22,7 @@ import shutil import subprocess from typing import List, Dict import yaml +import time from choose_projects import ChooseProjects @@ -123,6 +124,9 @@ def run_cmake(projects: str, repo_path: str, config_file_path: str = None, *, dr if not dryrun: if os.path.exists(build_dir): shutil.rmtree(build_dir) + while os.path.exists(build_dir): + print('Waiting for folder to really be deleted...') + time.sleep(1) os.makedirs(build_dir) env = _create_env(config)