fix for new wnf path stuff

This commit is contained in:
Pratik Vyas
2013-09-24 12:29:35 +05:30
parent 0eb811a518
commit 517b30a11d
2 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ def update_for_doc(doctype, doc):
exists = True
if not (filename.startswith("http://") or filename.startswith("https://")):
if not os.path.exists(webnotes.utils.get_path("public", "files", filename)):
if not os.path.exists(webnotes.utils.get_storage_path(webnotes.conf.files_path, filename)):
exists = False
if exists: