def _discover_config_file(): config_file_path = paths.find_within_ancestors('mojoconfig') if not config_file_path: return None return open(config_file_path, 'r')