Salome HOME
Merge branch 'V7_dev'
[modules/paravis.git] / test / VisuPrs / bugs / A9.py
index dbf68638fcb0330f7f606491ade8e9b857b8c5bd..9c7985d95691251730109f0cebcc9ce5b67e5ce1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2014  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -24,20 +24,16 @@ import sys
 
 from paravistest import datadir, get_picture_dir, pictureext
 from presentations import *
-import paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A9")
 
 # 1. Step1: Import MED file
 print "**** Step1: Importing MED file"
 
 print 'Import "sortie_med_volumique.med"...............',
-file_path = datadir + "sortie_med_volumique_v3.0.6.med"
-my_paravis.ImportFile(file_path)
+file_path = datadir + "sortie_med_volumique.med"
+pvsimple.OpenDataFile(file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -52,8 +48,8 @@ if view is None:
 else:
     reset_view(view)
     print "OK"
-    
-mesh_name = 'Volume_fluide'
+
+mesh_name = 'Volume fluide'
 cell_entity = EntityType.CELL
 node_entity = EntityType.NODE