|
@@ -76,7 +76,7 @@ class EquipmentOTA(View):
|
|
|
try:
|
|
|
# 删除文件和相应数据
|
|
|
file_path = equipment_version[0].filePath
|
|
|
- file_path = '/'.join((BASE_DIR, file_path)).replace('\\', '/')
|
|
|
+ file_path = os.path.join(BASE_DIR, file_path).replace('\\', '/')
|
|
|
os.remove(file_path)
|
|
|
equipment_version.delete()
|
|
|
except Exception as e:
|