def _get_all_yamls(self): yamls = Paths.browse( self.root,( PathFilters.filter_endswith(YAML), PathFilters.filter_not(PathFilters.filter_endswith(CONFIG_YAML)) )) return yamls
def generate_status_file(cls, target): """ Will generate status file if target has option turned on :type target: PyPy """ if target.status_file: IO.write(target.status_file, json.dumps(target.status(), indent=4)) output_dir = Paths.dirname(target.status_file) files = Paths.browse( output_dir, [PathFilters.filter_wildcards('*/profiler_info_*.log.json')]) # profiler json is missing? if not files: IO.write( Paths.join(output_dir, 'profiler_info_dummy.log.json'), '{}')
def _get_all_yamls(self): yamls = Paths.browse( self.root, (PathFilters.filter_endswith(yamlc.YAML), PathFilters.filter_not( PathFilters.filter_endswith(yamlc.CONFIG_YAML)))) return yamls