main.py 553 B

1234567891011121314151617181920212223242526272829303132
  1. from init_var import *
  2. import os
  3. import sys
  4. from PySide6.QtWidgets import QApplication
  5. # from appdirs import user_data_dir
  6. def main():
  7. app = QApplication(sys.argv)
  8. load_variables()
  9. from module.WorkWithDB import init_db
  10. from module.CleanerImage import CleanerImage
  11. from window.MainWindow import MainWindow
  12. init_db()
  13. CleanerImage(os.environ.get('PHOTO_DIR')) \
  14. .clear()
  15. window = MainWindow()
  16. window.show()
  17. sys.exit(app.exec())
  18. if __name__ == "__main__":
  19. main()