File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ rm -f "$2/$1.err"
1010rm -f " $2 /$1 .flavia.dat"
1111
1212# Run Python using the script MainKratos.py
13- docker run -v " $2 :/model" --rm --name " $1 " fjgarate/kratos-run > " $2 /$1 .info" 2> " $2 /$1 .err"
13+ docker run -v " $2 :/model" --rm --name " $1 " $kratos_docker_image > " $2 /$1 .info" 2> " $2 /$1 .err"
1414# docker run -v "%2:/model" --rm --name "%1" %kratos_docker_image% > "%2\\%1.info" 2> "%2\\%1.err"
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ rm -f "$2/$1.err"
1010rm -f " $2 /$1 .flavia.dat"
1111
1212# Run Python using the script MainKratos.py
13- python3 MainKratos.py > " $2 /$1 .info" 2> " $2 /$1 .err"
13+ $kratos_python_exe MainKratos.py > " $2 /$1 .info" 2> " $2 /$1 .err"
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ DEL "%2\%1*.post.res"
1515DEL " %2 \%1 *.post.msh"
1616
1717@ REM Calculate!
18- python MainKratos.py > " %2 \\%1 .info" 2 > " %2 \\%1 .err"
18+ %kratos_python_exe% MainKratos.py > " %2 \\%1 .info" 2 > " %2 \\%1 .err"
Original file line number Diff line number Diff line change @@ -201,6 +201,9 @@ proc Kratos::ExecuteLaunchByMode {launch_mode} {
201201 if {[dict get $mode name] eq " Docker" } {
202202 set docker_image [Kratos::ManagePreferences GetValue docker_image]
203203 set ::env(kratos_docker_image) $docker_image
204+ } else {
205+ set python_exe_path [Kratos::ManagePreferences GetValue python_path]
206+ set ::env(kratos_python_exe) $python_exe_path
204207 }
205208 return $bat_file
206209}
You can’t perform that action at this time.
0 commit comments