Salome HOME
Further porting: ImportFile is now replaced by OpenDataFile
[modules/paravis.git] / test / VisuPrs / bugs / D1.py
index d7d724774aaa3ec59b4b2d35c12b9df5c029e94a..14c0631f76914aba99dbca82573adde6ccee8513 100644 (file)
@@ -32,7 +32,7 @@ picturedir = get_picture_dir("bugs/D1")
 
 # 1. Import of the "Bug829_resu_mode.med" file at first time
 med_file_path = datadir + "Bug829_resu_mode.med"
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
 med_reader1 = pvsimple.GetActiveSource()
 if med_reader1 is None:
     raise RuntimeError, "Bug829_resu_mode.med was not imported!!!"
@@ -60,7 +60,7 @@ if abs(max(sizes)-min(sizes)) > 0.01*max(sizes):
     raise RuntimeError
 
 # 3. Import of the "Bug829_resu_mode.med" file at second time
-my_paravis.ImportFile(med_file_path)
+OpenDataFile(med_file_path)
 med_reader2 = pvsimple.GetActiveSource()
 if med_reader2 is None:
     raise RuntimeError, "Bug829_resu_mode.med was not imported second time!!!"