X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLauncher%2FLauncher_Job_PythonSALOME.cxx;h=658e6c4c9689373a109c548a02d1b52b1d23d769;hb=bc66f4540a4eda36e8700d55ef22030abf98a021;hp=d4a502a18278ba8f9abb3c3dab72f8246adda6b6;hpb=9749fc1db72bd80e278405114b05ffc69b5031da;p=modules%2Fkernel.git diff --git a/src/Launcher/Launcher_Job_PythonSALOME.cxx b/src/Launcher/Launcher_Job_PythonSALOME.cxx index d4a502a18..658e6c4c9 100644 --- a/src/Launcher/Launcher_Job_PythonSALOME.cxx +++ b/src/Launcher/Launcher_Job_PythonSALOME.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2009-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2009-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -21,12 +21,16 @@ // #include "Launcher_Job_PythonSALOME.hxx" +const char Launcher::Job_PythonSALOME::TYPE_NAME[] = "python_salome"; -Launcher::Job_PythonSALOME::Job_PythonSALOME() {_job_type = "python_salome";} +Launcher::Job_PythonSALOME::Job_PythonSALOME() +{ + _job_type = Launcher::Job_PythonSALOME::TYPE_NAME; +} Launcher::Job_PythonSALOME::~Job_PythonSALOME() {} -void +void Launcher::Job_PythonSALOME::setJobFile(const std::string & job_file) { Launcher::Job::setJobFile(job_file); @@ -35,5 +39,5 @@ Launcher::Job_PythonSALOME::setJobFile(const std::string & job_file) void Launcher::Job_PythonSALOME::addJobTypeSpecificScript(std::ofstream & launch_script_stream) { - launch_script_stream << _resource_definition.AppliPath << "/runSession -p $appli_port python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl; + launch_script_stream << _resource_definition.AppliPath << "/salome shell -p \"$appli_port\" python " << _job_file_name_complete << " > logs/python_" << _launch_date << ".log 2>&1" << std::endl; }