Porting to Python 2.6 - add coding page specification for Python scripts

This commit is contained in:
dmv 2009-10-12 06:16:35 +00:00
parent 30310d58ad
commit 630e3674da

View File

@ -485,7 +485,7 @@ Engines::TMPFile* SMESH_Gen_i::DumpPython (CORBA::Object_ptr theStudy,
// Add trace of API methods calls and replace study entries by names
TCollection_AsciiString aScript =
"#!/usr/bin/python\n# -*- coding: iso-8859-1 -*-\n"
"# -*- coding: iso-8859-1 -*-\n"
"### This file is generated by SALOME automatically by dump python functionality of SMESH component\n\n";
aScript += DumpPython_impl(aStudy, aMap, aMapNames,
isPublished, isValidScript, aSavedTrace);