Skip to content

Arguments passed to run_plugin replace backslash with forward slash #312

Description

@matham

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions