]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
Issue 3460: Provide markup commands and music functions for accordion registration
[lilypond.git] / scripts / lilypond-book.py
index 903e5e522176b6a31b97a1edd424ae1179dda3a5..6d424a18521c289991723363c7f04381dc8e042c 100644 (file)
@@ -544,10 +544,12 @@ def do_file (input_filename, included=False):
         in_handle = file (input_fullname)
 
     if input_filename == '-':
+        global_options.input_dir = os.getcwd ()
         input_base = 'stdin'
     elif included:
         input_base = os.path.splitext (input_filename)[0]
     else:
+        global_options.input_dir = os.path.split (input_absname)[0]
         input_base = os.path.basename (
             os.path.splitext (input_filename)[0])