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 ij.run_script signature that takes file paths #318

Open
hinerm opened this issue Oct 29, 2024 · 0 comments
Open

Add ij.run_script signature that takes file paths #318

hinerm opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hinerm
Copy link
Member

hinerm commented Oct 29, 2024

Instead of taking the full script text and language, we could just accept a fully qualified path, discern the language from the extension, and do

with open(script_path, "r") as f:
    script = "".join(f.readlines())

to avoid this boilerplate that is kind of annoying and feels unnecessary

@hinerm hinerm added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant