From 95eda47bb55379be3d190919603632fbdf4e6052 Mon Sep 17 00:00:00 2001
From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr>
Date: Tue, 4 May 2021 13:57:53 +0200
Subject: [PATCH] Fix banner

---
 gga_init.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gga_init.py b/gga_init.py
index becedb2..247fcde 100755
--- a/gga_init.py
+++ b/gga_init.py
@@ -64,7 +64,7 @@ class DeploySpeciesStack(speciesData.SpeciesData):
             if not config["banner_path"] == "" and os.path.isfile(os.path.abspath(config["banner_path"])):
                 banner_dest_path = os.path.join(self.main_dir,"/banner.png")
                 logging.info("Custom banner path: %s" % self.config["banner_path"])
-                if os.path.isfile(os.path.abspath(config["banner_path"])) != banner_dest_path:
+                if os.path.abspath(config["banner_path"]) != banner_dest_path:
                     shutil.copy(os.path.abspath(self.config["banner_path"]), banner_dest_path)
             else:
                 logging.debug("Using default banner for Tripal pages")
-- 
GitLab