From e2d11247f8bd12e41fc7474ebfaf686fddf87f90 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 9 Oct 2009 13:28:41 +0000 Subject: [PATCH] Porting to Python 2.6 - add coding page specification for Python scripts --- src/VISU_I/VISU_DumpPython.cc | 1 + src/VISU_SWIG/VISU_Example_01.py | 2 ++ src/VISU_SWIG/VISU_Example_02.py | 2 ++ src/VISU_SWIG/VISU_Example_03.py | 2 ++ src/VISU_SWIG/VISU_Example_04.py | 2 ++ src/VISU_SWIG/VISU_Example_05.py | 2 ++ src/VISU_SWIG/VISU_Example_06.py | 2 ++ src/VISU_SWIG/VISU_Example_07.py | 2 ++ src/VISU_SWIG/VISU_shared_modules.py | 2 ++ src/VISU_SWIG/batchmode_visu.py | 2 ++ src/VISU_SWIG/batchmode_visu_table.py | 2 ++ src/VISU_SWIG/batchmode_visu_view.py | 2 ++ src/VISU_SWIG/batchmode_visu_view3d.py | 2 ++ src/VISU_SWIG/visu.py | 2 ++ src/VISU_SWIG/visu_apply_properties.py | 2 ++ src/VISU_SWIG/visu_apply_properties_successive.py | 2 ++ src/VISU_SWIG/visu_big_table.py | 2 ++ src/VISU_SWIG/visu_cache.py | 2 ++ src/VISU_SWIG/visu_delete.py | 2 ++ src/VISU_SWIG/visu_gui.py | 2 ++ src/VISU_SWIG/visu_med.py | 2 ++ src/VISU_SWIG/visu_pointmap3d.py | 2 ++ src/VISU_SWIG/visu_prs_example.py | 2 ++ src/VISU_SWIG/visu_split_views.py | 2 ++ src/VISU_SWIG/visu_succcessive_animation.py | 2 ++ src/VISU_SWIG/visu_swig_test.py | 2 ++ src/VISU_SWIG/visu_table.py | 2 ++ src/VISU_SWIG/visu_view.py | 2 ++ src/VISU_SWIG/visu_view3d.py | 2 ++ src/VISU_SWIG/visu_view3d_parameters.py | 2 ++ 30 files changed, 59 insertions(+) diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index a04f0f73..c7e395e0 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -2133,6 +2133,7 @@ namespace VISU #endif std::string aPrefix(PREFIX); + aStr<< "#!/usr/bin/python" << endl << "# -*- coding: iso-8859-1 -*-" << endl; aStr<<"### This file is generated by SALOME automatically by dump python functionality" " of VISU component"<