Преглед на файлове

Photos bug fix, galleries with {filename} not working.

… even though the tests passed!
Joaquim Baptista преди 9 години
родител
ревизия
a31bc9ac16
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      photos/photos.py

+ 1 - 3
photos/photos.py

@@ -171,9 +171,7 @@ def process_gallery_filename(generator, article, gallery):
         gallery = gallery[1:]
     else:
         gallery = os.path.join(article.relative_dir, gallery)
-    dir_gallery = os.path.join(
-                    os.path.expanduser(generator.settings['PHOTO_LIBRARY']),
-                    gallery)
+    dir_gallery = os.path.join(generator.path, gallery)
     if os.path.isdir(dir_gallery):
         logger.info('photos: Gallery detected: %s', gallery)
         dir_photo = gallery.lower()