[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert-ly from the commandline under windows corrupted?
From: |
Eluze |
Subject: |
Re: convert-ly from the commandline under windows corrupted? |
Date: |
Sat, 17 Aug 2013 12:29:05 -0700 (PDT) |
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.
- Re: convert-ly from the commandline under windows corrupted?, (continued)
- Re: convert-ly from the commandline under windows corrupted?, Eluze, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Eluze, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Phil Holmes, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Eluze, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Phil Holmes, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Eluze, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Phil Holmes, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, Eluze, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?, David Kastrup, 2013/08/16
- Re: convert-ly from the commandline under windows corrupted?,
Eluze <=
- Re: convert-ly from the commandline under windows corrupted?, David Kastrup, 2013/08/17
- Re: convert-ly from the commandline under windows corrupted?, Eluze, 2013/08/17
- Re: convert-ly from the commandline under windows corrupted?, David Kastrup, 2013/08/17
- Re: convert-ly from the commandline under windows corrupted?, Colin Campbell, 2013/08/19
- Re: convert-ly from the commandline under windows corrupted?, David Kastrup, 2013/08/19
- Re: convert-ly from the commandline under windows corrupted?, Colin Campbell, 2013/08/20
- Re: convert-ly from the commandline under windows corrupted?, David Kastrup, 2013/08/16