From 498cb537ac2808145ddf50ce137e778b8728fd03 Mon Sep 17 00:00:00 2001 From: Boris Basic <boris.basic@edf.fr> Date: Thu, 7 Mar 2024 11:28:33 +0100 Subject: [PATCH] Patch stbtel_refine.py and stbtel_refine.py for V8P4 and V8P5 --- build-telemac.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build-telemac.bat b/build-telemac.bat index c124643..eccf4d1 100644 --- a/build-telemac.bat +++ b/build-telemac.bat @@ -219,6 +219,21 @@ for %%f in (scripts\python3\*.py) do ( echo python %%~dp0\python3\%%~nf.py %%* >> scripts\%%~nf.py.bat ) +rem Patch stbtel_refine.py and stbtel_converter.py to ensure that the batch file +rem wrapping sbtel.py is called instead of the script itself +set temp_path=%path% +for %%a in ("%git_path%\..\..") do set "path=%%~fa\usr\bin;%path%" +if not %version% == main ( + echo Patching stbtel_refine.py and stbtel_converter.py... + pushd scripts\python3\pretel + sed -i 's/stbtel_args\ =\ \[path_stbtel/stbtel_args\ =\ \["stbtel.py"/g' stbtel_refine.py + popd + pushd scripts\python3\data_manip\conversion + sed -i 's/stbtel_args\ =\ \[path_stbtel/stbtel_args\ =\ \["stbtel.py"/g' stbtel_converter.py + popd +) +set path=%temp_path% + rem Build TELEMAC for gnu.static call configs\pysource.gnu.static.bat call compile_telemac.py -- GitLab