diff --git a/gga_init.py b/gga_init.py index 4be3f7029a186e165cff5e6003871b045c96dd6a..497fb1ffdd33cf91059932c072897ea1cb8885ff 100755 --- a/gga_init.py +++ b/gga_init.py @@ -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)) diff --git a/speciesData.py b/speciesData.py index 87c2015c66c1ec559f0085ef766aa720db43f8bf..dcc26a015f44ad622b63a7981e524c9e1beff5a1 100755 --- a/speciesData.py +++ b/speciesData.py @@ -89,7 +89,7 @@ class SpeciesData: self.blast = "0" if constants.ORG_PARAM_DESC_PICTURE_PATH in parameters_dictionary_description.keys(): - self.tripal_species_picture = parameters_dictionary_services[constants.ORG_PARAM_DESC_PICTURE_PATH] + self.tripal_species_picture = parameters_dictionary_description[constants.ORG_PARAM_DESC_PICTURE_PATH] else: self.tripal_species_picture = None