From e07693c95fd4f8e83ee293554daf5c82219c2ae6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 31 Mar 2017 23:26:14 -0500 Subject: [PATCH] EW6 Importer: Cleanup array cropping. --- openlp/plugins/songs/lib/importers/easyworship.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/importers/easyworship.py b/openlp/plugins/songs/lib/importers/easyworship.py index 0f83722c8..fd1b4604e 100644 --- a/openlp/plugins/songs/lib/importers/easyworship.py +++ b/openlp/plugins/songs/lib/importers/easyworship.py @@ -350,7 +350,7 @@ class EasyWorshipSongImport(SongImport): """ target_file = '' while len(path_list) > 0: - target_file = os.path.join(path_list[len(path_list) - 1], target_file) + target_file = os.path.join(path_list[-1], target_file) path_list = path_list[:len(path_list) - 1] full_path = os.path.join(base_path, target_file) full_path = full_path[:len(full_path) - 1]