Aloha,

Regarding the error message from ly2dvi on Win95:

> > > ly2dvi hmm, I could not find an output file name
> > > C:\Music>

I found out why this happens, although I didn't solve it yet...

In ly2dvi.py, there is a popen() that executes lilypond.exe:

<cut>
    if os.environ.has_key('OS') and \
       os.environ['OS'] == 'Windows_95':
        cmd = 'ash -c "lilypond %s %s 2>&1"' %(getLilyopts(), file)
    else:
        cmd = 'lilypond %s %s 2>&1' % (getLilyopts(), file)
    sys.stderr.write ('executing: %s\n'% cmd)

    fd = os.popen(cmd , 'r')
</cut>

But although this popen executes the command, it does not redirect the
output from the command to the running python script, but instead to the DOS
console window. So you see the text scrolling on your window, but ly2dvi.py
doesn't intercept it, which is the reason of the error message.

I tried running with and without ash.exe, but it had no effect. I also tried
running ly2dvi.py from ash as command shell (instead of command.com), but
that didn't work either. Anyone got a clue?

As a workaround I run lilypond on the ly-file and ly2dvi on the generated
tex file:

    lilypond file.ly
    ly2dvi file.tex

And this works reasonably well.

HTH,

-- 
Arjen Bax

CMG Noord-Nederland B.V.
Sector Telecommunications & Utilities
Postbus 70237, 9704 AE  Groningen
Tel. (050)52 19 500, Fax (050)52 19 503

Any system that depends upon human reliability is unreliable.

Reply via email to