From 4600727e17976a04f76f88467abcbee94759df4d Mon Sep 17 00:00:00 2001 From: Fabrice Laporte Date: Wed, 8 Oct 2014 20:32:30 +0200 Subject: [PATCH] fix building of lyrics file paths --- test/test_lyrics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_lyrics.py b/test/test_lyrics.py index 46f713cb5..464a4d2d5 100644 --- a/test/test_lyrics.py +++ b/test/test_lyrics.py @@ -163,8 +163,7 @@ class MockFetchUrl(object): url = url.replace('http://', '').replace('www.', '') fn = "".join(x for x in url if (x.isalnum() or x == '/')) fn = fn.split('/') - fn = os.path.join('rsrc', 'lyrics', fn[0], fn[-1]) + '.txt' - + fn = os.path.join(_common.RSRC, 'lyrics', fn[0], fn[-1]) + '.txt' with open(fn, 'r') as f: content = f.read() return content