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

cross platform script #1

Open
jefferis opened this issue Dec 8, 2021 · 3 comments
Open

cross platform script #1

jefferis opened this issue Dec 8, 2021 · 3 comments

Comments

@jefferis
Copy link

jefferis commented Dec 8, 2021

@sandorbx would it be possible to make one script that just used the run platform to switch behaviour e.g. the path to binary? This might be good in the long run to avoid having to edit three separate scripts?

@sandorbx
Copy link
Owner

sandorbx commented Dec 8, 2021

Its a good idea I will look into this, though the WSL version contains some specific workarounds. But all in one file would be certainly more elegant and easier to maintain.

@jefferis
Copy link
Author

jefferis commented Dec 8, 2021

Hmm, I see. I figured there must be some complication. For ref, you can use getInfo("os.name") (https://imagej.nih.gov/ij/developer/macro/functions.html)

@sandorbx
Copy link
Owner

sandorbx commented Dec 8, 2021

Thanks, I Think I can restructure the code to make this work.

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

No branches or pull requests

2 participants