]> SALOME platform Git repositories - modules/kernel.git/commitdiff
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>
Fri, 18 Aug 2023 12:27:12 +0000 (14:27 +0200)
src/Launcher/Launcher_Job_PythonSALOME.cxx

index 46f602220b93c59c24d050f80529afd29d759837..2b34e7d3eb30ef41139a3f1341c5b23f5b1d2f24 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;
 }