Skip to content

Commit 0767d56

Browse files
check dependencies on run
1 parent 001ac18 commit 0767d56

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

kratos.gid/kratos.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ proc Kratos::Event_InitProblemtype { dir } {
130130
after 500 [list spdAux::CreateWindow]
131131
}
132132

133-
Kratos::CheckDependencies
134133
}
135134

136135
proc Kratos::InitGlobalVariables {dir} {
@@ -517,6 +516,7 @@ proc Kratos::Event_BeforeRunCalculation { batfilename basename dir problemtypedi
517516
}
518517
set app_run_brake [apps::ExecuteOnCurrentApp BreakRunCalculation]
519518
if {[write::isBooleanTrue $app_run_brake]} {return "-cancel-"}
519+
Kratos::CheckDependencies
520520

521521
}
522522

kratos.gid/scripts/Menus.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ proc Kratos::ChangeMenus { } {
151151
if {[GidUtils::VersionCmp "14.1.4d"] <0 } { set cmd [list ChangeVariables kratos_preferences] } {set cmd [list PreferencesWindow kratos_preferences]}
152152
GiDMenu::InsertOption "Kratos" [list "Kratos preferences" ] [incr pos] PRE $cmd "" "" replace =
153153
GiDMenu::InsertOption "Kratos" [list "View current log" ] [incr pos] PREPOST [list Kratos::ViewLog] "" "" replace =
154-
GiDMenu::InsertOption "Kratos" [list "Install python and update dependencies" ] [incr pos] PREPOST [list Kratos::InstallAllPythonDependencies] "" "" replace =
154+
GiDMenu::InsertOption "Kratos" [list "Check dependencies" ] [incr pos] PREPOST [list Kratos::CheckDependencies] "" "" replace =
155155
GiDMenu::InsertOption "Kratos" [list "Refresh launch configurations" ] [incr pos] PREPOST [list Kratos::LoadLaunchModes 1] "" "" replace =
156156
GiDMenu::InsertOption "Kratos" [list "---"] [incr pos] PRE "" "" "" replace =
157157
GiDMenu::InsertOption "Kratos" [list "About Kratos" ] [incr pos] PREPOST [list Kratos::About] "" "" replace =

0 commit comments

Comments
 (0)