def data_path(path, createdir=False):
    """
    Return the given path joined with the .scrapy data directory.
    If given an absolute path, return it unmodified.
    """
    if not isabs(path):
        if inside_project():
            path = join(project_data_dir(), path)
        else:
            path = join('.scrapy', path)
    if createdir and not exists(path):
        os.makedirs(path)
    return path

    Return the given path joined with the .scrapy data directory.
    If given an absolute path, return it unmodified.
    
stackoverflow/venv/lib/python3.6/site-packages/scrapy/utils/project.py