Skip to content
Snippets Groups Projects

Add a picture in Tripal home page

Merged Loraine Gueguen requested to merge release_2.1 into dev
All threads resolved!
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -81,13 +81,13 @@ class DeploySpeciesStack(speciesData.SpeciesData):
if self.tripal_species_picture.endswith("png"):
species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.png"))
try:
os.symlink(os.path.abspath(self.tripal_species_picture, species_picture_dest_path))
os.symlink(os.path.abspath(self.tripal_species_picture), species_picture_dest_path)
except FileNotFoundError:
logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species))
elif self.tripal_species_picture.endswith("jpg"):
species_picture_dest_path = os.path.join(self.species_dir, os.path.abspath("species.jpg"))
try:
os.symlink(os.path.abspath(self.tripal_species_picture, species_picture_dest_path))
os.symlink(os.path.abspath(self.tripal_species_picture), species_picture_dest_path)
except FileNotFoundError:
logging.info("Specified organism picture ({0}) not found for {1}".format(self.tripal_species_picture, self.genus_upper + " " + self.species))
Loading