Skip to content

Commit 81c7350

Browse files
yanzhuddnecusjz
authored andcommitted
fix split file path
1 parent f8a650f commit 81c7350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/aaz-flow/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def generate_code(
1919
cli_extension_path = os.getenv("CLI_EXTENSION_PATH", "/workspaces/azure-cli-extensions")
2020
swagger_path = os.getenv("SWAGGER_PATH", "/workspaces/azure-rest-api-specs")
2121

22-
swagger_module = swagger_module_path.split("\\")[-1]
22+
swagger_module = os.path.split(swagger_module_path)[-1]
2323

2424
des = (
2525
f"Just run the following command in the terminal: 'aaz-dev command-model generate-from-swagger --swagger-path {swagger_path} --swagger-module-path {swagger_module_path} --aaz-path {aaz_path} --module {swagger_module} --resource-provider {resource_provider} --swagger-tag {swagger_tag}'",

0 commit comments

Comments
 (0)