yandextank/api/apiworker.py
def get_default_configs(self):
        """ returns default configs list, from /etc, home dir and package_data"""
        # initialize basic defaults
        configs = [resource_filename(__name__, 'config/00-base.ini')]
        try:
            conf_files = sorted(os.listdir(self.baseconfigs_location))
            for filename in conf_files:
                if fnmatch.fnmatch(filename, '*.ini'):
                    configs += [
                        os.path.realpath(
                            self.baseconfigs_location + os.sep + filename)
                    ]
        except OSError:
            self.log.warn(
                self.baseconfigs_location + ' is not accessible to get configs list')

        configs += [os.path.expanduser('~/.yandex-tank')]
        return configs
def get_default_configs(self):
        """ returns default configs list, from /etc, home dir and package_data"""
        # initialize basic defaults
        configs = [resource_filename(__name__, 'config/00-base.ini')]
        try:
            conf_files = sorted(os.listdir(self.baseconfigs_location))
            for filename in conf_files:
                if fnmatch.fnmatch(filename, '*.ini'):
                    configs += [
                        os.path.realpath(
                            self.baseconfigs_location + os.sep + filename)
                    ]
        except OSError:
            self.log.warn(
                self.baseconfigs_location + ' is not accessible to get configs list')

        configs += [os.path.expanduser('~/.yandex-tank')]
        return configs
def get_default_configs ( self ) : # initialize basic defaults configs = [ resource_filename ( __name__ , 'config/00-base.ini' ) ] try : conf_files = sorted ( os . listdir ( self . baseconfigs_location ) ) for filename in conf_files : if fnmatch . fnmatch ( filename , '*.ini' ) : configs += [ os . path . realpath ( self . baseconfigs_location + os . sep + filename ) ] except OSError : self . log . warn ( self . baseconfigs_location + ' is not accessible to get configs list' ) configs += [ os . path . expanduser ( '~/.yandex-tank' ) ] return configs
returns default configs list, from /etc, home dir and package_data
returns default configs list from / etc home dir and package_data