fonction de chargement automatique de la configuration
			depuis le fichier extérieur

def reload(self):
		""" 
			fonction de chargement automatique de la configuration
			depuis le fichier extérieur
		"""
		# lecture du fichier de configuration en mode UTF-8
		if self.config_filename != "":
			try:
				# content = open(self.config_filename).read()
				self.config_content = codecs.open(self.config_filename, "r", "utf8").read()

			except Exception as e:
				raise Exception(
					"{}: json/yaml settings error reading: {}".format(self.config_filename, e))

		# init
		self.is_json = False
		self.is_yaml = False

		# interprétation des données
		error_str = ""
		error_reading_json, error_reading_yaml = False, False
		try:
			self.settings = json.loads(self.config_content)
			self.is_json = True
		except Exception as e:
			error_str = e
			error_reading_json = True

		if error_reading_json:
			try:
				# préservation des duplications de clef
				# https://stackoverflow.com/questions/44904290/getting-duplicate-keys-in-yaml-using-python

				import yaml
				content = self.config_content.replace("\t", "  ")
				self.settings = yaml.load(content)
				self.is_yaml = True

			except Exception as e:
				error_str = e
				error_reading_yaml = True

		if error_reading_json and error_reading_yaml:
			raise Exception(
				"{}: json/yaml settings incorrect: {}".format(self.config_filename, error_str))