Exemple #1
0
                                      flag_sequence=args.inst_sequence, flag_tab_save=args.inst_tab_save,
                                      flag_tab=args.inst_tab, flag_view=args.inst_view, flag_package=args.inst_package,
                                      flag_sql=args.inst_sql, global_defines_file=args.global_defines_file,
                                      jsonl_parameters=args.jsonl_parameters
                                      )
    if len(args.json_file_path) > 0:
        globalInstaller.workJsonlFile(json_file_path=args.json_file_path,
                                      cleanInstallationPath=args.clean_installation_path,
                                      copy_all_data_to_installation=args.copy_all_data_to_installation,
                                      install_objects=args.install_objects)
    elif args.hideGui:
        # Calls function without gui.
        # used in command line only.
        if args.clean_installation_path:
            globalInstaller.cleanInstallationPath()
        if args.copy_all_data_to_installation:
            globalInstaller.readInstallationObjectFromPath()
            globalInstaller.copyAllData2InstallationPath()
        if args.install_objects:
            globalInstaller.installAllObjects2Database()
    else:
        # Default Obption starts Gui
        app = QtWidgets.QApplication(sys.argv)
        MainWindow = QtWidgets.QMainWindow()
        ui = Ui_MainWindow()
        ui.setupUi(MainWindow)
        ui.connect_user_isgnals()
        ui.set_user_variables(globalInstaller=globalInstaller)
        MainWindow.show()
        sys.exit(app.exec_())