From 72795344324a8957d28096102727b2ebb8709a6a Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Tue, 9 Feb 2016 23:03:48 +0100 Subject: [PATCH] Basename depends on extension length --- patacrep/songbook/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/songbook/__main__.py b/patacrep/songbook/__main__.py index f341e004..ce418af2 100644 --- a/patacrep/songbook/__main__.py +++ b/patacrep/songbook/__main__.py @@ -131,7 +131,7 @@ def main(): if os.path.exists(songbook_path + ".yaml") and not os.path.exists(songbook_path): songbook_path += ".yaml" - basename = os.path.basename(songbook_path)[:-3] + basename = os.path.basename(songbook_path)[:-len(".yaml")] # Load the user songbook config try: