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

Arguments passed to run_plugin replace backslash with forward slash #312

Open
matham opened this issue Aug 13, 2024 · 0 comments
Open

Arguments passed to run_plugin replace backslash with forward slash #312

matham opened this issue Aug 13, 2024 · 0 comments

Comments

@matham
Copy link

matham commented Aug 13, 2024

I was using BigStitcher from pyimagej on Windows and needed to pass in paths. But, BigStitcher would choke on the paths claiming it can't find files there.

I traced down the issue to pyimagej automatically replacing backslashes with a forward slash. When I removed this, BigStitcher finally worked.

temp_value = str(value).replace("\\", "/")

Should this replacement be optional, perhaps guarded behind a switch, like ij1_style!? I ended up replicating the format code and passing in args as a string, without this replacement.

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

1 participant