Salome HOME
PYTHON3: encoding in header is no longer necessary with python 3
authorGilles DAVID <gilles-g.david@edf.fr>
Thu, 23 Mar 2017 16:53:09 +0000 (17:53 +0100)
committerGilles DAVID <gilles-g.david@edf.fr>
Thu, 23 Mar 2017 16:53:09 +0000 (17:53 +0100)
src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx

index 5947c40304bdf72318f3b7771f2b406b864881bf..c04961aa27d5ec3f42dea3c27f40e826d6221ace 100644 (file)
@@ -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