Hello christophe,
thanks for your help, this solved the problems with explode function, just a small detail for others that might have the same issue there is a missing “/” in the line of code to add the correct line is:
context.addToLdLibraryPath(out_dir_Path + r"/BINARIES-CO7/extra_libs")
and to insert directly in the correct location (for new users out there)
salome_folder=SALOME-9.12.0
cd $salome_folder
sed -i 's|# context.addToLdLibraryPath(out_dir_Path + r"/BINARIES-CO7/system_dep/gl")|# context.addToLdLibraryPath(out_dir_Path + r"/BINARIES-CO7/system_dep/gl")\n context.addToLdLibraryPath(out_dir_Path + r"/BINARIES-CO7/extra_libs")|' "./mesa_salome"
regards