Skip to content

Commit 6213f0b

Browse files
authored
Update generate_utils.py
1 parent f8c8213 commit 6213f0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ def gen_cadl(cadl_relative_path: str, spec_folder: str) -> Dict[str, Any]:
355355
output_path = Path(os.getcwd()) / project_yaml["emitters"][cadl_python]["sdk-folder"]
356356
if not output_path.exists():
357357
os.makedirs(output_path)
358-
while(not output_path.exists()):
359-
time.sleep(1)
358+
time.sleep(10)
359+
360360

361361
project_yaml["emitters"][cadl_python].pop("sdk-folder")
362362
project_yaml["emitters"][cadl_python]["output-path"] = str(output_path)
@@ -379,4 +379,4 @@ def gen_cadl(cadl_relative_path: str, spec_folder: str) -> Dict[str, Any]:
379379
# return to original folder
380380
os.chdir(origin_path)
381381

382-
return npm_package_verstion
382+
return npm_package_verstion

0 commit comments

Comments
 (0)