| 123456789101112131415161718192021 |
- # from databases import CRUD, SqlQuery, PhotoRecord, insert_photo_records
- # from datetime import datetime
- # session = SqlQuery()
- # crud = CRUD(PhotoRecord)
- # record = crud.read(session=session, order_by="id", ascending=False)
- # if record == None:
- # # 发送失败消息
- # pass
- # else:
- # insert_photo_records(
- # record.image_deal_mode, record.goods_art_no, record.image_index+1
- # )
- import time, shutil
- from utils.utils_func import check_path
- dst_path = "C:/Development/project/python/CameraMachine/build/extraResources/py/data/"
- check_path(dst_path)
- shutil.copy(
- "C:\Development\project\python\auto_photo\data\DSC_0438.jpg",
- dst_path,
- )
|