bug-lilypond
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]