dak wrote
> The corresponding passage in scripts/convert-ly.py reads
>
> if global_options.edit:
> try:
> os.remove (infile_name + '~')
> except:
> pass
> os.rename (infile_name, infile_name + '~')
> outfile = open (infile_name, 'w')
> else:
> outfile = sys.stdout
>
> outfile.write (result)
>
> sys.stderr.flush ()
>
> return errors
>
> which is quite unspectacular. So either there is still a permission
> problem, or your version of Python and Windows just don't cooperate
> sensibly on sys.stdout.
after looking up Martin Tarenskeen's indent-ly.py I replaced
# sys.stderr.flush ()
by
outfile.close()
and it works!
does that make sense?!
Eluze
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/convert-ly-from-the-commandline-under-windows-corrupted-tp149284p149354.html
Sent from the Bugs mailing list archive at Nabble.com.
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond