Skip to content

Ensure directory exists for gen_func_call_scripts - #7

Merged
HaroldCindy merged 2 commits into
secondlife:mainfrom
FelixWolf:ensure_directory
Jul 15, 2025
Merged

Ensure directory exists for gen_func_call_scripts#7
HaroldCindy merged 2 commits into
secondlife:mainfrom
FelixWolf:ensure_directory

Conversation

@FelixWolf

Copy link
Copy Markdown
Contributor

Hoping I understood the "No API changes" policy in the contributing correctly here. (Interpretted it as "No changes to the LSL api", rather than "No changes to the script")

Script will crash when calling gen_func_call_scripts if the output directory doesn't exist. This ensures the output directory exists when running by calling os.makedirs(output_path, exist_ok=True) before attempting to write to it. If it already exists, gracefully continue.

@HaroldCindy HaroldCindy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine in principle, thanks! Just needs some fixups to whitespace to pass CI.

@FelixWolf
FelixWolf requested a review from HaroldCindy July 15, 2025 06:48
@HaroldCindy
HaroldCindy merged commit 981f772 into secondlife:main Jul 15, 2025
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants