Salome HOME
Merge remote branch 'origin/V7_dev'
[modules/paravis.git] / src / PV_SWIG / paravisSM.py
index 047751120fcbedba56bf2c5bba86e6b39c50db2a..32bca857d4d60fe169d1dd4f1364e6e9765454d5 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
 #
 
 r""" This module is a direct forward to the initial 
-'servermanager' module of ParaView.
+'servermanager' module of ParaView. We keep it for backward compatibility only,
+technically user could directly import 'paraview.servermanager'.
 """
 
-from paraview.servermanager import *
+from paraview import servermanager
 
-for name in dir(servermanager):
-#   if name != "__file__":
-    globals()[name] = getattr(servermanager, name)
-del servermanager
-# 
+for name in dir(servermanager):
+  if not name.startswith("__"):
+    globals()[name] = getattr(servermanager, name)
+del servermanager