From 9c90d9515a50ede29415b8b5d6ba11229f333b49 Mon Sep 17 00:00:00 2001 From: Elias Dorneles Date: Thu, 29 Sep 2016 19:11:17 -0300 Subject: [PATCH] update data_path dosctring --- scrapy/utils/project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scrapy/utils/project.py b/scrapy/utils/project.py index fd457fdcb..95c6a8035 100644 --- a/scrapy/utils/project.py +++ b/scrapy/utils/project.py @@ -43,8 +43,9 @@ def project_data_dir(project='default'): def data_path(path, createdir=False): - """If inside the project and path is relative, return the given path - as relative to the project data dir, otherwise return it unmodified + """ + 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():