From: Gilles DAVID Date: Thu, 23 Mar 2017 16:53:09 +0000 (+0100) Subject: PYTHON3: encoding in header is no longer necessary with python 3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e7d18b64c76d7bfe822be3fee50fed0c6ade4ed;p=modules%2Fyacs.git PYTHON3: encoding in header is no longer necessary with python 3 --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx index 5947c4030..c04961aa2 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx @@ -1301,7 +1301,7 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, sfp << _GetNoteBookAccess(aStudyVar) << std::endl; // extend sys.path with the directory where the script is being dumped to - sfp << "sys.path.insert( 0, r\'" << thePath << "\')" << std::endl << std::endl; + sfp << "sys.path.insert(0, r\'" << thePath << "\')" << std::endl << std::endl; // dump NoteBook variables sfp << _GetStudyVariablesScript(); @@ -1438,7 +1438,7 @@ bool SALOMEDSImpl_Study::DumpStudy(const std::string& thePath, std::string SALOMEDSImpl_Study::GetDumpStudyComment(const char* theComponentName) { std::stringstream txt; - txt << "# -*- coding: utf-8 -*-" << std::endl << std::endl; + txt << "#!/usr/bin/env python" << std::endl << std::endl; txt << "###" << std::endl; txt << "### This file is generated automatically by SALOME v" << KERNEL_VERSION_STR