From f5ab8abe63163f71e81c7f4da7969f68c2ea0417 Mon Sep 17 00:00:00 2001 From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr> Date: Tue, 4 May 2021 14:00:12 +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 247fcde..1ce0181 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.abspath(config["banner_path"]) != banner_dest_path: + if os.path.samefile(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