utils/SettingsReader.py
def genTypeFile(self, type:str) -> object:
        """Generator of ids of particular type present in settings.

        :param type:
        :return: File XML element from settings, if such file exists on disk.
        """
        found=False
        if self.check(full=True):
            for elem in self.getTypes(type):
                file= '{0}/{1}'.format(self.dataDir, elem.get('path'))
                if os.path.exists(file):
                    if not found:
                        self.main.printToOut('Reading {0} data...'.format(type))
                        found=True
                    #добавляем контрольную сумму в настройки
                    elem.set('md5', self.md5(file))
                    yield elem
                else:
                    self.main.printToOut('WARNING: File specified in settings (' + os.path.basename(file) + ') does not exist!')
Generator of ids of particular type present in settings.

        :param type:
        :return: File XML element from settings, if such file exists on disk.
        
Generator of ids of particular type present in settings.
Generator of ids of particular type present in settings .
def genTypeFile(self, type:str) -> object:
        found=False
        if self.check(full=True):
            for elem in self.getTypes(type):
                file= '{0}/{1}'.format(self.dataDir, elem.get('path'))
                if os.path.exists(file):
                    if not found:
                        self.main.printToOut('Reading {0} data...'.format(type))
                        found=True
                    elem.set('md5', self.md5(file))
                    yield elem
                else:
                    self.main.printToOut('WARNING: File specified in settings (' + os.path.basename(file) + ') does not exist!')
def genTypeFile ( self , type : str ) -> object : found = False if self . check ( full = True ) : for elem in self . getTypes ( type ) : file = '{0}/{1}' . format ( self . dataDir , elem . get ( 'path' ) ) if os . path . exists ( file ) : if not found : self . main . printToOut ( 'Reading {0} data...' . format ( type ) ) found = True elem . set ( 'md5' , self . md5 ( file ) ) yield elem else : self . main . printToOut ( 'WARNING: File specified in settings (' + os . path . basename ( file ) + ') does not exist!' )
Generator of ids of particular type present in settings.
Generator of ids of particular type present in settings .
"""Generator of ids of particular type present in settings.

        :param type:
        :return: File XML element from settings, if such file exists on disk.
        """ #добавляем контрольную сумму в настройки
File XML element from settings, if such file exists on disk.
File XML element from settings if such file exists on disk .
self
type
str
None