Skip to content

Commit 053db3b

Browse files
Post process file
1 parent be43acc commit 053db3b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

kratos.gid/kratos.tcl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
478492
proc Kratos::Event_EndGIDPostProcess {} {
479493
# Close all postprocess windows
480494
gid_groups_conds::close_all_windows

0 commit comments

Comments
 (0)