예제 #1
0
                if packages[0].lower() == "update":
                    HelpDB.update()
                elif packages[0].lower() == "upgrade":
                    HelpDB.upgrade()
                elif packages[0].lower() == "install":
                    HelpDB.install()
                elif packages[0].lower() == "list":
                    HelpDB.my_list()
                elif packages[0].lower() == "quit":
                    HelpDB.my_quit()
                elif packages[0].lower() == "help":
                    HelpDB.show_all()
                elif packages[0].lower() == "uninstall":
                    HelpDB.uninstall()
                elif packages[0].lower() == "listinstalled":
                    HelpDB.installed_list()
                else:
                    HelpDB.show_all()
            else:
                HelpDB.show_all()

        elif "list" == operator.lower():
            print()
            # TODO Debug. Is yet functioning basically
            with open("installed_mods.csv", 'r') as instmods:
                for line in instmods:
                    line = instmods.readline().split("|")[0]
                    # print(line[0])
                    with open("mods.csv", 'r') as file:
                        for lines in file:
                            lines = file.readline().split("|")