You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Could not get output of \"java -version\" in \"view_extract.py\"', 'red')
54
-
returnFalse
55
-
if(java_version):
56
-
is_java_installed=True
57
-
else:
58
-
is_java_installed=False
59
-
ifis_java_installed:
50
+
kill_me()
51
+
52
+
ifjava_version:
60
53
custom_print(
61
54
f'Found Java v{java_version[0]} installed on system. Continuing...')
62
-
returnis_java_installed
63
55
else:
64
56
is_no_java_continue=custom_input(
65
57
'It looks like you don\'t have JAVA installed on your system. If you are sure that JAVA is installed you can (C)ontinue with the process or (S)top?: ', 'red') or's'
66
58
if(is_no_java_continue.upper() =='C'):
67
59
custom_print(
68
60
'Continuing without detecting JAVA...', 'yellow')
69
-
returnis_java_installed
70
61
else:
71
-
kill_me()
62
+
kill_me('Can not view extract without java installed on system!')
72
63
73
64
74
65
defclean_tmp():
@@ -78,9 +69,12 @@ def clean_tmp():
78
69
shutil.rmtree(tmp)
79
70
80
71
81
-
defkill_me():
82
-
custom_print('>>> I am in view_extract.kill_me()', is_print=False)
72
+
defkill_me(reason: str=''):
73
+
custom_print(
74
+
f'>>> I am in view_extract.kill_me({reason=!s})', is_print=False)
0 commit comments