Browse Source

Base url

master
venkataakhil 1 year ago
parent
commit
dedc92ed2c
  1. 5
      smart_service/apis/master_api.py

5
smart_service/apis/master_api.py

@ -398,7 +398,7 @@ def change_file_dir():
for d in file_data:
frappe.log_error("File data :", str(d))
path = d['file']
isExist = os.path.exists(base_path+path)
isExist = os.path.exists(base_path + path)
frappe.log_error("Path exists :", str(isExist))
if not isExist:
@ -413,9 +413,10 @@ def change_file_dir():
extension = 'png'
new_full_path = path + extension
frappe.log_error("New path:", str(new_full_path))
new_file_dir = base_path + '/files/Driver Seat Back Rest Foam.jpg'
new_file_dir = base_path + new_full_path
if os.path.exists(new_file_dir):
frappe.log_error("final", str(
'ext changed File exists in local:' + str(new_file_dir)))

Loading…
Cancel
Save