From 71de4f2d28c396ae2b0e53e478531a92e819e2ce Mon Sep 17 00:00:00 2001 From: Loraine Gueguen <loraine.gueguen@sb-roscoff.fr> Date: Mon, 17 May 2021 11:26:04 +0200 Subject: [PATCH] fix banner symlink condition --- gga_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gga_init.py b/gga_init.py index 879fda8..9a73c8d 100755 --- a/gga_init.py +++ b/gga_init.py @@ -64,7 +64,7 @@ class DeploySpeciesStack(speciesData.SpeciesData): if constants.CONF_TRIPAL_BANNER_PATH in self.config.keys(): if not config[constants.CONF_TRIPAL_BANNER_PATH] == "" and os.path.isfile(os.path.abspath(config[constants.CONF_TRIPAL_BANNER_PATH])): banner_dest_path = os.path.join(self.species_dir, os.path.abspath("banner.png")) - if not os.path.isfile(banner_dest_path) and not os.path.islink(banner_dest_path) and not os.path.samefile(os.path.abspath(config[constants.CONF_TRIPAL_BANNER_PATH]),banner_dest_path): + if not os.path.isfile(banner_dest_path) and not os.path.islink(banner_dest_path): os.symlink(os.path.abspath(self.config[constants.CONF_TRIPAL_BANNER_PATH]), banner_dest_path) logging.info("Custom banner added: symlink from %s" % self.config[constants.CONF_TRIPAL_BANNER_PATH]) else: -- GitLab