pyimagej icon indicating copy to clipboard operation
pyimagej copied to clipboard

Add ij.run_script signature that takes file paths

Open hinerm opened this issue 3 months ago • 0 comments

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 avatar Oct 29 '24 20:10 hinerm