Am Sonntag, den 24.09.2017, 18:57 +0200 schrieb Stephan Witt:
> Sorry, I neither read the script nor the python docs until now.
> 
> I think it’s fine already. The subprocess.check_call gets the
> args passed as array of strings and executes the sub process
> with individual arguments. The spaces don’t need quotes.

That's what I thought as well, but in the case of the command, it
didn't work for Uwe unless I wrapped the command name in quotes.

> I’ve tried this:
> $ mkdir 'dir with spaces‘
> $ cp lyx/lib/images/file-open.svgz 'dir with spaces‘
> $ python lyx/lib/scripts/svg2pdftex.py $(pwd)/'dir with spaces'/file-
> open.svgz $(pwd)/file-open.pdf
> $ ls -l file-open.*
> -rw-r--r--@ 1 stephan  staff  45330 24 Sep 18:55 file-open.pdf
> -rw-r--r--  1 stephan  staff   1871 24 Sep 18:55 file-open.tex
> $
> 
> Isn’t this ok?

You have to pass the inkscape command as first argument.

Jürgen

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to