update data_path dosctring

This commit is contained in:
Elias Dorneles 2016-09-29 19:11:17 -03:00
parent 25bd3b3fea
commit 9c90d9515a
1 changed files with 3 additions and 2 deletions

View File

@ -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():