Salome HOME
Copyrights update 2015.
[modules/paravis.git] / test / VisuPrs / Animation / B5.py
index 7848081ddec7c43a1a7a386a7cdcc45cad4ccf2f..e147f29549381b086605a63e8c06c41b5bc9e330 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2010-2013  CEA/DEN, EDF R&D
+# Copyright (C) 2010-2015  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
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -25,7 +25,7 @@ import os
 from paravistest import * 
 from presentations import *
 from pvsimple import *
-import paravis
+import pvserver as paravis
 
 #import file
 myParavis = paravis.myParavis
@@ -38,7 +38,7 @@ print " --------------------------------- "
 print "file ", theFileName
 print " --------------------------------- "
 
-myParavis.ImportFile(theFileName)
+OpenDataFile(theFileName)
 aProxy = GetActiveSource()
 if aProxy is None:
        raise RuntimeError, "Error: can't import file."