X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Flilypond-book.py;h=1e0f7abf661d9ede9773e81d1277fdd91f6c57d7;hb=5b1f3adfe5e3561eaa0f9440e0697054084b7107;hp=7fcec344de7088fe26e6a2f2ddab250b4a2a13e4;hpb=38e1cad48d14f0b0f9286b4bb8891051a5f82d1e;p=lilypond.git diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 7fcec344de..1e0f7abf66 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -616,7 +616,7 @@ def inverse_relpath (path, relpath): return the first path relative to the second.""" if os.path.isabs (relpath): return os.path.abspath (path) - relparts = [''] + relparts = [] parts = os.path.normpath (path).split (os.path.sep) for part in os.path.normpath (relpath).split (os.path.sep): if part == '..': @@ -644,7 +644,7 @@ def do_options (): global_options.output_dir = os.path.expanduser (global_options.output_dir) global_options.include_path.insert (0, inverse_relpath (original_dir, global_options.output_dir)) - global_options.include_path.insert (0, ".%s" % os.path.sep) + global_options.include_path.insert (0, ".") # Load the python packages (containing e.g. custom formatter classes) # passed on the command line