]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fixed pvsimple to include pvserver instead of paravis.
authorabn <adrien.bruneton@cea.fr>
Tue, 28 Oct 2014 14:17:11 +0000 (15:17 +0100)
committerabn <adrien.bruneton@cea.fr>
Tue, 28 Oct 2014 14:17:11 +0000 (15:17 +0100)
src/PV_SWIG/no_wrap/pvsimple.py

index a0cc620ebfa63885c23fe19500652a0b8b1260c8..eb60f65ecbfd6627aa6642c686a100575a4e30e6 100644 (file)
@@ -78,11 +78,11 @@ def SalomeConnectToPVServer():
     __my_log("Connecting to PVServer ...")
     server_url = ""
     try:
-        isGUIConnected = paravis.myPVServerService.GetGUIConnected()
+        isGUIConnected = pvserver.myPVServerService.GetGUIConnected()
         if isGUIConnected and __getFromGUI():
             __my_log("Importing pvsimple from GUI and already connected. Won't reconnect.")
             return
-        server_url = paravis.myPVServerService.FindOrStartPVServer(0)
+        server_url = pvserver.myPVServerService.FindOrStartPVServer(0)
         # Extract host and port from URL:
         a = server_url.split(':')
         b = a[1].split('//')
@@ -90,7 +90,7 @@ def SalomeConnectToPVServer():
         simple.Connect(host, port)
         __my_log("Connected to %s!" % server_url)
         if __getFromGUI():
-            paravis.myPVServerService.SetGUIConnected(True)
+            pvserver.myPVServerService.SetGUIConnected(True)
     except Exception as e:
         __my_log("*******************************************")
         __my_log("** Could not connect to a running PVServer!")