On Tue, 31 Aug 2010 19:02:43 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:
> cmd = [
> r"c:\scripts\inkscape.bat",
> "--with-gui",
> # svgfile,]
>
> proc = subprocess.Popen(cmd)
>
> However, making a similar change in three places in inkcall.py crashes
> at these lines at get_dim:
>
> for line in stdout.strip().split('\n'):
> id_,x,y,w,h = line.split(',')
>
> Ah. The first line is the basically the cmd above. Maybe I can
> ignore it. Let's change the second line to:
>
> data = line.split(',')
> if len(data) != 5: continue
> id_,x,y,w,h = data
I think the .bat echoed the command to stdout, tripping up the read of the
inkscape output.
I've added a --inkscape parameter, so you can do:
C:\Users\tbrown\inkcall>c:\Python26\python.exe inkcall.py --inkscape "c:\Program
Files (x86)\Inkscape\inkscape.exe"
And like the docs would say, if they were written, parameters can be passed in
by setting attributes on an object and using it as the opt parameter of the
constructor of the InkCall class, as main() sort of indicates.
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.