From 2e7d18b64c76d7bfe822be3fee50fed0c6ade4ed Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Thu, 23 Mar 2017 17:53:09 +0100 Subject: [PATCH] PYTHON3: encoding in header is no longer necessary with python 3 --- src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2