__init__.py 293 B

12345678910
  1. from datetime import datetime
  2. import os
  3. def create_filename() -> str:
  4. return os.path.join(os.environ.get('PHOTO_DIR'), F"propusk_{datetime.now().timestamp()}.jpg")
  5. def create_path_qr() -> str:
  6. return os.path.join(os.environ.get('PHOTO_DIR'), F"qr_{datetime.now().timestamp()}.png")