Skip to content

Commit 416c00d

Browse files
committed
fix copy
1 parent cb2740b commit 416c00d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/arduino/app_tools/module_listing.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,16 @@ def main():
466466
exists = os.path.exists(model_path)
467467
if exists:
468468
shutil.copy(model_path, args.model_output)
469+
# Copy api-docs as well
470+
api_docs_source = os.path.join(
471+
os.path.dirname(os.path.dirname(os.path.abspath(logger_file_path))),
472+
"app_bricks",
473+
"static",
474+
"api-docs",
475+
)
476+
api_docs_destination = os.path.join(os.path.dirname(args.model_output), "api-docs")
477+
if os.path.exists(api_docs_source):
478+
shutil.copytree(api_docs_source, api_docs_destination, dirs_exist_ok=True)
469479
else:
470480
print(f"Model path: {model_path} does not exist. Skipping model copy.")
471481

0 commit comments

Comments
 (0)