Eluze <elu...@gmail.com> writes: > 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?!
Not to me. But that's par for the course for Windows. -- David Kastrup _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond