

@task
@description('Generates eclipse-pydev development files')
def pydev_generate(project, logger):
    logger.info('Generating Eclipse/ Pydev project files.')
    paths = []
    add_property_value_if_present(paths, project, 'dir_source_main_python')
    add_property_value_if_present(paths, project, 'dir_source_main_scripts')
    add_property_value_if_present(paths, project, 'dir_source_unittest_python')
    add_property_value_if_present(paths, project, 'dir_source_integrationtest_python')
    paths_string = ''
    for path in paths:
        if os.path.exists(path):
            placeholders = {
                'project_name': project.name,
                'path': path,
            }
            paths_string += _DOT_PYDEVPROJECT_PATH_LINE_TEMPLATE.substitute(placeholders)
    values = {
        'project_name': project.name,
        'interpreter': project.expand('$pydev_interpreter_name'),
        'version': project.expand('$pydev_version'),
        'paths': path,
    }
    with open(project.expand_path('.project'), 'w') as project_file:
        logger.debug('Writing %s', project_file.name)
        project_file.write(_DOT_PROJECT_TEMPLATE.substitute(values))
    with open(project.expand_path('.pydevproject'), 'w') as pydevproject_file:
        logger.debug('Writing %s', pydevproject_file.name)
        pydevproject_file.write(_DOT_PYDEVPROJECT_TEMPLATE.substitute(values))

dataset/ETHPy150Open pybuilder/pybuilder/src/main/python/pybuilder/plugins/python/pydev_plugin.py pydev_generate/VarMisuse@154/276 `paths_string`->`path`