| 462 | |
| 463 | @staticmethod |
| 464 | def setArch(): |
| 465 | msg = "what is the back-end database management system architecture?" |
| 466 | msg += "\n[1] 32-bit (default)" |
| 467 | msg += "\n[2] 64-bit" |
| 468 | |
| 469 | while True: |
| 470 | choice = readInput(msg, default='1') |
| 471 | |
| 472 | if hasattr(choice, "isdigit") and choice.isdigit() and int(choice) in (1, 2): |
| 473 | kb.arch = 32 if int(choice) == 1 else 64 |
| 474 | break |
| 475 | else: |
| 476 | warnMsg = "invalid value. Valid values are 1 and 2" |
| 477 | logger.warning(warnMsg) |
| 478 | |
| 479 | return kb.arch |
| 480 | |
| 481 | # Get methods |
| 482 | @staticmethod |