Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python scripts #22

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

Legimet
Copy link
Contributor

@Legimet Legimet commented Jun 19, 2024

I've added support for Python scripts. You can add multiple Python files. The first one specified will be the one that shows up when the TNS document is opened.

Should I add some code to validate the filename? I believe the part before the .py extension cannot exceed 237 characters, and must be a valid Python identifier (only alphanumeric/underscore characters, can't start with a digit, can't be a reserved word).

luna.c Outdated Show resolved Hide resolved
Copy link
Contributor

@Vogtinator Vogtinator left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

luna.c Outdated Show resolved Hide resolved
@Vogtinator Vogtinator merged commit c9712b1 into ndless-nspire:master Jul 5, 2024
1 check passed
@Vogtinator
Copy link
Contributor

Code looks good, I also verified that the output of ndless/calcbin remains identical.

I actually wanted to squash merge instead of rebase merge, but that shouldn't matter much anyway 🤷

@adriweb
Copy link
Contributor

adriweb commented Jul 6, 2024

Just mentioning here that thanks to this PR, I've now added support for TI-Nspire CX II python scripts to TI-Planet's Project Builder, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants