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

Inserting carets into expanded paths? #11

Open
axfelix opened this issue Jul 15, 2020 · 1 comment
Open

Inserting carets into expanded paths? #11

axfelix opened this issue Jul 15, 2020 · 1 comment

Comments

@axfelix
Copy link

axfelix commented Jul 15, 2020

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...

@seangenabe
Copy link
Owner

I'm not sure how you're using the output but it's supposed to be passed into exec. You can check the tests to see how it's supposed to be used.

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