Salome HOME
[EDF27816] : Make KERNEL_Launcher and KERNEL_Launcher_SWIG run on native debian11
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 18 Aug 2023 12:27:12 +0000 (14:27 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 22 Aug 2023 09:40:51 +0000 (11:40 +0200)
src/Launcher/Launcher_Job_PythonSALOME.cxx

index c9eeab7aadd8dece9a1964b3e0221467c3203634..4e15496840921128af288b8cd57aa8506888b8d5 100644 (file)
@@ -43,7 +43,7 @@ Launcher::Job_PythonSALOME::addJobTypeSpecificScript(std::ofstream & launch_scri
   struct stat statbuf;
   if(stat(getenv("APPLI"), &statbuf) ==0 &&  S_ISREG(statbuf.st_mode))
       // case where AppliPath hold a salome launcher file
-      launch_script_stream << _resource_definition.AppliPath << " shell -- python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
+      launch_script_stream << _resource_definition.AppliPath << " shell -- python3 " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
   else
-      launch_script_stream << _resource_definition.AppliPath << "/salome shell -- python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
+      launch_script_stream << _resource_definition.AppliPath << "/salome shell -- python3 " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl;
 }