From efdb79cac94ccee4ec976d2c91cce508d52fd94d Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Mon, 21 Sep 2015 07:41:04 +0200 Subject: [PATCH] search_file returns absolute filepath --- patacrep/songs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patacrep/songs/__init__.py b/patacrep/songs/__init__.py index b59883be..69403502 100644 --- a/patacrep/songs/__init__.py +++ b/patacrep/songs/__init__.py @@ -223,7 +223,7 @@ class Song: for extension in extensions: fullpath = os.path.join(directory, filename + extension) if os.path.isfile(fullpath): - return fullpath + return os.path.abspath(fullpath) return None def search_image(self, filename):