import os


def _run_lilypond(lily_file_name):
   os.system('lilypond -dno-point-and-click %s > lily.log 2>&1' % 
      lily_file_name)
   postscript_file_name = lily_file_name.replace('.ly', '.ps')
   try:
      os.remove(postscript_file_name)
   except OSError:
      ### No such file...
      pass
