Skip to content

Commit f8c8213

Browse files
committed
async fix
1 parent 26ffd7d commit f8c8213

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/azure-sdk-tools/packaging_tools/generate_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import logging
44
import os
55
import re
6+
import time
67

78
from azure_devtools.ci_tools.git_tools import get_add_diff_file_list
89
from pathlib import Path
@@ -354,6 +355,8 @@ def gen_cadl(cadl_relative_path: str, spec_folder: str) -> Dict[str, Any]:
354355
output_path = Path(os.getcwd()) / project_yaml["emitters"][cadl_python]["sdk-folder"]
355356
if not output_path.exists():
356357
os.makedirs(output_path)
358+
while(not output_path.exists()):
359+
time.sleep(1)
357360

358361
project_yaml["emitters"][cadl_python].pop("sdk-folder")
359362
project_yaml["emitters"][cadl_python]["output-path"] = str(output_path)

0 commit comments

Comments
 (0)