wait for folder to be deleted
should fix issues with existing folder on windows
This commit is contained in:
parent
0a7b6daabf
commit
6d9b38c62a
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue