From fffcf3f63b5d85e2db6e35bf8e14727992b44f81 Mon Sep 17 00:00:00 2001 From: Louis Date: Thu, 26 Jun 2014 09:40:09 +0200 Subject: [PATCH] Corrected bug when songbook path is only a file (file.sb, not dir/file.sb) --- songbook | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/songbook b/songbook index afaa1ef3..dacb77c0 100755 --- a/songbook +++ b/songbook @@ -118,12 +118,12 @@ def main(): if isinstance(songbook['datadir'], basestring): songbook['datadir'] = [songbook['datadir']] datadirs += [ - os.path.join(os.path.dirname(songbook_path), path) + os.path.join(os.path.dirname(os.path.abspath(songbook_path)), path) for path in songbook['datadir'] ] if not datadirs: # Default value - datadirs = [os.path.dirname(songbook_path)] + datadirs = [os.path.dirname(os.path.abspath(songbook_path))] songbook['datadir'] = datadirs try: