temp.py 669 B

123456789101112131415161718192021
  1. # from databases import CRUD, SqlQuery, PhotoRecord, insert_photo_records
  2. # from datetime import datetime
  3. # session = SqlQuery()
  4. # crud = CRUD(PhotoRecord)
  5. # record = crud.read(session=session, order_by="id", ascending=False)
  6. # if record == None:
  7. # # 发送失败消息
  8. # pass
  9. # else:
  10. # insert_photo_records(
  11. # record.image_deal_mode, record.goods_art_no, record.image_index+1
  12. # )
  13. import time, shutil
  14. from utils.utils_func import check_path
  15. dst_path = "C:/Development/project/python/CameraMachine/build/extraResources/py/data/"
  16. check_path(dst_path)
  17. shutil.copy(
  18. "C:\Development\project\python\auto_photo\data\DSC_0438.jpg",
  19. dst_path,
  20. )