[fix] I want relative path for web
This commit is contained in:
parent
4fe9851f6c
commit
5716be17d9
@ -59,7 +59,7 @@ def main():
|
||||
error(gallery_settings.get("title"), "You should specify a title in %s" % (os.path.join(gallery, "settings.yaml")))
|
||||
error(gallery_settings.get("cover"), "You should specify a path to a cover picture in %s" % (os.path.join(gallery, "settings.yaml")))
|
||||
|
||||
cover_image_path = os.path.join(os.getcwd(), gallery, gallery_settings["cover"])
|
||||
cover_image_path = os.path.join(gallery, gallery_settings["cover"])
|
||||
|
||||
error(os.path.exists(cover_image_path), "File for %s cover image doesn't exists at %s" % (gallery, cover_image_path))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user