<s> from pathlib import Path <EOL> from vint . asset import get_asset_path <EOL> from vint . linting . config . config_file_source import ConfigFileSource <EOL> PROJECT_CONFIG_FILENAME = '<STR_LIT>' <EOL> VOID_CONFIG_PATH = get_asset_path ( '<STR_LIT>' ) <EOL> class ConfigProjectSource ( ConfigFileSource ) : <EOL> def get_file_path ( self , env ) : <EOL> proj_conf_path = VOID_CONFIG_PATH <EOL> path_list_to_search = [ Path ( env [ '<STR_LIT>' ] ) ] + list ( Path ( env [ '<STR_LIT>' ] ) . parents ) <EOL> for project_path in path_list_to_search : <EOL> proj_conf_path_tmp = project_path / PROJECT_CONFIG_FILENAME <EOL> if proj_conf_path_tmp . is_file ( ) : <EOL> proj_conf_path = proj_conf_path_tmp <EOL> break <EOL> return proj_conf_path </s>
