Skip to content
Snippets Groups Projects
Commit 57ab77f5 authored by Loraine Gueguen's avatar Loraine Gueguen
Browse files

fix banner condition

parent 12009e55
No related branches found
No related tags found
2 merge requests!9Release 2.0 (merge dev to master),!8Release 2.0
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -63,7 +63,7 @@ class DeploySpeciesStack(speciesData.SpeciesData):
if "banner_path" in self.config.keys():
if not config["banner_path"] == "" and os.path.isfile(os.path.abspath(config["banner_path"])):
banner_dest_path = os.path.join(self.species_dir, os.path.abspath("banner.png"))
if not os.path.samefile(os.path.abspath(config["banner_path"]),banner_dest_path):
if not os.path.isfile(banner_dest_path) or not os.path.samefile(os.path.abspath(config["banner_path"]),banner_dest_path):
os.symlink(os.path.abspath(self.config["banner_path"]), banner_dest_path)
logging.info("Custom banner added: symlink from %s" % self.config["banner_path"])
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment