28 lines
465 B
Python
28 lines
465 B
Python
"""
|
|
Entry point. Run with: python main.py
|
|
"""
|
|
import sys
|
|
|
|
from PyQt6.QtWidgets import QApplication
|
|
|
|
from app import config
|
|
from app.database import init_db
|
|
from app.ui.main_window import MainWindow
|
|
|
|
|
|
def main() -> int:
|
|
config.sync_env_with_example()
|
|
init_db()
|
|
|
|
app = QApplication(sys.argv)
|
|
app.setApplicationName("Order Manager")
|
|
|
|
window = MainWindow()
|
|
window.show()
|
|
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main())
|