Skip to content

Commit 37cb018

Browse files
pip msg
1 parent 969e136 commit 37cb018

1 file changed

Lines changed: 15 additions & 16 deletions

File tree

kratos.gid/scripts/Launch.tcl

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,21 @@ proc Kratos::CheckDependencies { } {
101101
}
102102
set pip_version [Kratos::pipVersion]
103103
if {$pip_version <= 0} {
104-
WarnWin "pip is not installed on your system."
105-
}
106-
107-
108-
set missing_packages [Kratos::GetMissingPipPackages]
109-
if {[llength $missing_packages] > 0} {
110-
set msgBox_type yesno
111-
# -do_not_ask_again 1 -do_not_ask_again_key "kratos_install_python"
112-
set reply [tk_messageBox -icon warning -type $msgBox_type -parent .gid \
113-
-message "Python $py_version is installed, but there are some missing packages. Do you want Kratos to install them? \n\nPackages to be installed: \n$missing_packages" \
114-
-title [_ "Missing python packages"]]
115-
if {[string equal $reply "yes"]} {
116-
Kratos::InstallAllPythonDependencies
117-
}
118-
if {[string equal $reply "cancel"]} {
119-
104+
WarnWin "pip is not installed on your system. Please install it in your system."
105+
} else {
106+
set missing_packages [Kratos::GetMissingPipPackages]
107+
if {[llength $missing_packages] > 0} {
108+
set msgBox_type yesno
109+
# -do_not_ask_again 1 -do_not_ask_again_key "kratos_install_python"
110+
set reply [tk_messageBox -icon warning -type $msgBox_type -parent .gid \
111+
-message "Python $py_version is installed, but there are some missing packages. Do you want Kratos to install them? \n\nPackages to be installed: \n$missing_packages" \
112+
-title [_ "Missing python packages"]]
113+
if {[string equal $reply "yes"]} {
114+
Kratos::InstallAllPythonDependencies
115+
}
116+
if {[string equal $reply "cancel"]} {
117+
118+
}
120119
}
121120
}
122121
}

0 commit comments

Comments
 (0)