1
0
Fork 0

wait for folder to be deleted

should fix issues with existing folder on windows
This commit is contained in:
Christian Kühnel 2020-04-01 16:29:19 +02:00
parent 0a7b6daabf
commit 6d9b38c62a

View file

@ -22,6 +22,7 @@ import shutil
import subprocess import subprocess
from typing import List, Dict from typing import List, Dict
import yaml import yaml
import time
from choose_projects import ChooseProjects 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 not dryrun:
if os.path.exists(build_dir): if os.path.exists(build_dir):
shutil.rmtree(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) os.makedirs(build_dir)
env = _create_env(config) env = _create_env(config)