def __init__(self, file_name=None, locale_configuration=None):
        """
        Initializes a new object that contains the configuration of HaTeMiLe.

        :param file_name: The full path of file.
        :type file_name: str
        :param locale_configuration: The locale of configuration.
        :type locale_configuration: tuple(str, str)
        """

        helper.require_valid_type(file_name, str)
        helper.require_valid_type(locale_configuration, tuple)

        if file_name is None:
            if locale_configuration is not None:
                locale_code = locale_configuration[0]
            else:
                locale_code = locale.getdefaultlocale()[0]
            file_name = os.path.join(os.path.dirname(os.path.dirname(
                os.path.dirname(os.path.realpath(__file__))
            )), '_locales', locale_code, 'configuration.json')
            if not os.path.isfile(file_name):
                file_name = os.path.join(os.path.dirname(os.path.dirname(
                    os.path.dirname(os.path.realpath(__file__))
                )), '_locales', 'en_US', 'configuration.json')
        with open(file_name, 'r') as json_file:
            self.parameters = json.load(json_file)
def __init__ ( self , file_name = None , locale_configuration = None ) : helper . require_valid_type ( file_name , str ) helper . require_valid_type ( locale_configuration , tuple ) if file_name is None : if locale_configuration is not None : locale_code = locale_configuration [ 0 ] else : locale_code = locale . getdefaultlocale ( ) [ 0 ] file_name = os . path . join ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) , '_locales' , locale_code , 'configuration.json' ) if not os . path . isfile ( file_name ) : file_name = os . path . join ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) , '_locales' , 'en_US' , 'configuration.json' ) with open ( file_name , 'r' ) as json_file : self . parameters = json . load ( json_file )
Initializes a new object that contains the configuration of HaTeMiLe.

        :param file_name: The full path of file.
        :type file_name: str
        :param locale_configuration: The locale of configuration.
        :type locale_configuration: tuple(str, str)