Browse Source

Merge pull request #670 from pxquim/photos

Fix Photos bug with galleries and {filename}
Justin Mayer 8 years ago
parent
commit
c68757fa6a
1 changed files with 1 additions and 3 deletions
  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()