]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
(construct-chord): process transposition
[lilypond.git] / scripts / lilypond-book.py
index 4877122d1bc4fe67da21225012f7209a964a1e63..f6629870619e19ecfa312efbe1a749ba0bc035d4 100644 (file)
@@ -667,7 +667,6 @@ LATEX_DOCUMENT = r'''
 '''
 #need anything else besides textwidth?
 def get_latex_textwidth (source):
-       print 'hoi\n', source
        m = re.search (r'''(?P<preamble>\\begin\s*{document})''', source)
        preamble = source[:m.start (0)]
        latex_document = LATEX_DOCUMENT % vars ()
@@ -757,7 +756,9 @@ def do_file (input_filename):
                                           + format2ext[format])
 
 
-               if os.path.samefile (output_filename, input_fullname):
+               if (os.path.exists (input_filename) and 
+                   os.path.exists (output_filename) and 
+                   os.path.samefile (output_filename, input_fullname)):
                        ly.error (_("Output would overwrite input file; use --output."))
                        sys.exit (2)
 
@@ -767,7 +768,6 @@ def do_file (input_filename):
 
        ly.progress (_ ("Reading %s...") % input_fullname)
        source = in_handle.read ()
-       print 'hoai', source, in_handle
        ly.progress ('\n')
        
        snippet_types = (