diff --git a/patches/april_2013/p05_update_file_data.py b/patches/april_2013/p05_update_file_data.py index a9a3cf96293..dc3b9a882c0 100644 --- a/patches/april_2013/p05_update_file_data.py +++ b/patches/april_2013/p05_update_file_data.py @@ -36,7 +36,7 @@ def update_for_doc(doctype, doc): exists = True if not (filename.startswith("http://") or filename.startswith("https://")): - if not os.path.exists(os.path.join(webnotes.utils.get_base_path(), "public", "files", filename)): + if not os.path.exists(webnotes.utils.get_path("public", "files", filename): exists = False if exists: