Salome HOME
Merge branch 'V7_dev'
[modules/paravis.git] / test / VisuPrs / bugs / A6.py
index ee43def87ae5de81917059bd24560155593b2771..7910d06ebe1cd3e8fdbcfe8006f66c0926aee27f 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
@@ -23,18 +23,15 @@ import sys
 import os
 from paravistest import datadir, pictureext, get_picture_dir
 from presentations import *
-import paravis
 import pvsimple
 
-my_paravis = paravis.myParavis
-os.environ["PARAVIS_TEST_PICS"] = sys.argv[1]
 picturedir = get_picture_dir("bugs/A6")
 
 med_file_path = datadir + "fra.med"
 
 # 1. Import MED file
 print 'Importing "fra.med"....',
-my_paravis.ImportFile(med_file_path)
+pvsimple.OpenDataFile(med_file_path)
 med_reader = pvsimple.GetActiveSource()
 
 if med_reader is None:
@@ -51,10 +48,8 @@ for mesh_name in [get_field_short_name(name) for name in mesh_names]:
         raise RuntimeError, "Error"
 
     mesh.Representation = 'Wireframe'
-        
+
     pic_path = os.path.join(picturedir, mesh_name + "_Cell." + pictureext)
     pic_path = re.sub("\s+","_", pic_path)
     print "Save picture ", pic_path
     process_prs_for_test(mesh, pvsimple.GetRenderView(), pic_path)
-    
-