add cli app and fix relationship typos
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
PyQT6 GUI for Kontor
|
||||
"""
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from platformdirs import PlatformDirs
|
||||
from PySide6.QtWidgets import QApplication
|
||||
import yaml
|
||||
|
||||
from gui.main_window import MainWindow
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QApplication(sys.argv)
|
||||
dirs = PlatformDirs("kontor")
|
||||
database_config = Path(dirs.user_config_dir, 'database-config.yaml')
|
||||
with open(database_config, 'rt') as f:
|
||||
db_config = yaml.safe_load(f.read())
|
||||
window = MainWindow(db_config)
|
||||
window.show()
|
||||
app.exec()
|
||||
Reference in New Issue
Block a user