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

py: add ability to load python expression from file #2295

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

jqnatividad
Copy link
Collaborator

similar to luau capability.

However, in this case, its only a SINGLE python expression.

luau can load entire scripts from file.

This is somewhat ameliorated by the fact that the py --helper option allows the user to load an entire Python module in the the qsv_uh namespace and call methods defined in the helper from the expression.

also renamed argument from script to expression to emphasize that the arg is a SINGLE expression, not a full-blown python script.

Also removed useless map_err in evaluating expression, as it was followed by an unwrap_or_else
@jqnatividad jqnatividad merged commit d14bd04 into master Nov 17, 2024
14 checks passed
@jqnatividad jqnatividad deleted the python-loadexpression_fromfile branch November 17, 2024 15:34
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.

1 participant