32 lines
678 B
Python
32 lines
678 B
Python
# coding: utf8
|
|
import sys
|
|
|
|
from PySide6.QtWidgets import QApplication
|
|
|
|
from lib.config_utils import get_default_db_path, read_config
|
|
from src.mw_kps_unifier import KpsUnifier
|
|
import src.rc_kps_unifier
|
|
|
|
__version__ = '0.1.0'
|
|
__version_info__ = tuple(map(int, __version__.split('.')))
|
|
|
|
ORG_NAME = "JnPrograms"
|
|
APP_NAME = "KpsUnifier"
|
|
|
|
|
|
def main():
|
|
app = QApplication(sys.argv)
|
|
app.setOrganizationName(ORG_NAME)
|
|
app.setApplicationName(APP_NAME)
|
|
|
|
config = read_config(ORG_NAME, APP_NAME)
|
|
db_path = get_default_db_path(config, ORG_NAME, APP_NAME)
|
|
|
|
win = KpsUnifier(db_path, config)
|
|
win.show()
|
|
return app.exec()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|