def run(self, add, update_id, delete_id, show_inventory, inventory_file): """ This is the main driver for the program. """ if self.exitstate == 1: sys.exit(0) else: #run the controller ctl = ControllerMain() ctl.run(add, update_id, delete_id, show_inventory, inventory_file) ctl = None
def run(self): """ This is the main driver for the program. """ if self.exitstate == 1: sys.exit(0) else: #run the controller ctl = ControllerMain(self.config) ctl.run() ctl = None
def run(self, add, update_id, delete_id, show_inventory, inventory_file): """ This is the main driver for the program. """ if self.exitstate == 1: sys.exit(0) else: #run the controller ctl = ControllerMain() ctl.run(add , update_id , delete_id , show_inventory , inventory_file) ctl = None