Make InquirerPy module optional #179

Closed
huakim wants to merge 59 commits from main into main
Showing only changes of commit 817fedd34b - Show all commits
+6
View File
@@ -1,7 +1,10 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
try:
from InquirerPy import inquirer from InquirerPy import inquirer
from InquirerPy.base.control import Choice from InquirerPy.base.control import Choice
from InquirerPy.separator import Separator from InquirerPy.separator import Separator
except ModuleNotFoundError:
inquirer = None
import argparse import argparse
import os import os
from typing import List from typing import List
@@ -200,6 +203,9 @@ def hack_option(args):
def interact(): def interact():
if inquirer is None:
print('Please, install InquirerPy module first')
return
os.system("clear") os.system("clear")
args = argparse.Namespace() args = argparse.Namespace()
android_version = inquirer.select( android_version = inquirer.select(