From a93e8b9af239dd0724fd084a965cf30a3b3cd97e Mon Sep 17 00:00:00 2001 From: abn Date: Tue, 28 Oct 2014 15:17:11 +0100 Subject: [PATCH] Fixed pvsimple to include pvserver instead of paravis. --- src/PV_SWIG/no_wrap/pvsimple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PV_SWIG/no_wrap/pvsimple.py b/src/PV_SWIG/no_wrap/pvsimple.py index a0cc620e..eb60f65e 100644 --- a/src/PV_SWIG/no_wrap/pvsimple.py +++ b/src/PV_SWIG/no_wrap/pvsimple.py @@ -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!") -- 2.39.2