Skip to content

Commit ba886a4

Browse files
authored
update cmd (Azure#27720)
1 parent be6b515 commit ba886a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ def gen_cadl(cadl_relative_path: str, spec_folder: str) -> Dict[str, Any]:
362362
os.makedirs(output_path)
363363

364364
project_yaml["emitters"][cadl_python].pop("sdk-folder")
365-
project_yaml["emitters"][cadl_python]["output-path"] = str(output_path)
366365
with open(project_yaml_path, "w") as file_out:
367366
yaml.safe_dump(project_yaml, file_out)
368367

@@ -372,7 +371,7 @@ def gen_cadl(cadl_relative_path: str, spec_folder: str) -> Dict[str, Any]:
372371
check_call("npm install", shell=True)
373372

374373
# generate code
375-
check_call(f"npx cadl compile . --emit {cadl_python}", shell=True)
374+
check_call(f"npx cadl compile . --emit {cadl_python} --output-path={str(output_path)}", shell=True)
376375
if (output_path / "output.yaml").exists():
377376
os.remove(output_path / "output.yaml")
378377

0 commit comments

Comments
 (0)