Browse Source

search_file returns absolute filepath

pull/103/head
Oliverpool 9 years ago
parent
commit
efdb79cac9
  1. 2
      patacrep/songs/__init__.py

2
patacrep/songs/__init__.py

@ -223,7 +223,7 @@ class Song:
for extension in extensions: for extension in extensions:
fullpath = os.path.join(directory, filename + extension) fullpath = os.path.join(directory, filename + extension)
if os.path.isfile(fullpath): if os.path.isfile(fullpath):
return fullpath return os.path.abspath(fullpath)
return None return None
def search_image(self, filename): def search_image(self, filename):

Loading…
Cancel
Save