File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ proc Kratos::RegisterGiDEvents { } {
6969 GiD_RegisterEvent GiD_Event_SelectGIDBatFile Kratos::Event_SelectGIDBatFile PROBLEMTYPE Kratos
7070
7171 # Postprocess
72+ GiD_RegisterEvent GiD_Event_BeforeInitGIDPostProcess Kratos::BeforeInitGIDPostProcess PROBLEMTYPE Kratos
7273 GiD_RegisterEvent GiD_Event_InitGIDPostProcess Kratos::Event_InitGIDPostProcess PROBLEMTYPE Kratos
7374 GiD_RegisterEvent GiD_Event_EndGIDPostProcess Kratos::Event_EndGIDPostProcess PROBLEMTYPE Kratos
7475
@@ -475,6 +476,19 @@ proc Kratos::Event_InitGIDPostProcess {} {
475476 gid_groups_conds::open_post check_default
476477}
477478
479+ proc Kratos::BeforeInitGIDPostProcess {} {
480+ # In docker run, rename lst file
481+ if {[info exists Kratos::kratos_private(launch_configuration)]} {
482+ set launch_mode $Kratos::kratos_private(launch_configuration)
483+ if {$launch_mode eq " Docker" } {
484+ set list_file [file join [GidUtils::GetDirectoryModel] model.post.lst]
485+ if {[file exists $list_file ]} {
486+ file copy -force $list_file [GidUtils::GetFilenameInsideProject [GidUtils::GetDirectoryModel] .post.lst]
487+ }
488+ }
489+ }
490+ }
491+
478492proc Kratos::Event_EndGIDPostProcess {} {
479493 # Close all postprocess windows
480494 gid_groups_conds::close_all_windows
You can’t perform that action at this time.
0 commit comments