Skip to content

Inserting carets into expanded paths? #11

@axfelix

Description

@axfelix

Hi,

This module appears to be doing a funny thing when using expanded string paths -- it turns this:

path.join(tempdir, "%05d.png")
"C:\Users\axfel\AppData\Local\Temp\tmp-1580-IFsmqhcaMmms\%05d.png"

into this:

commandJoin([path.join("win","gs","bin","gswin64c.exe"), "-o", path.join(tempdir, "%05d.png"), "-sDEVICE=png16m", "-r300", "-dPDFFitPage=true", input])
""win\gs\bin\gswin64c.exe" -o "C:\Users\axfel\AppData\Local\Temp\tmp-1580-IFsmqhcaMmms\^%05d.png" -sDEVICE=png16m -r300 -dPDFFitPage=true "C:\Users\axfel\Desktop\air\new.pdf""

I'm not sure where those carets are coming from, but they're breaking my script...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions