# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
host, port, filename = None, None, None
if requested_port:
print "Search for running instance on port %s..."%requested_port
- found = [(h,p,f) for h,p,f in available_connexions if p == requested_port]
+ found = [(h,p,f) for h,p,f in available_connexions if int(p) == int(requested_port)]
if not found:
print " ...no running instance found"
elif len(found) == 1:
#
def start_client():
- print os.getenv("OMNIORB_CONFIG")
-
try:
clt = client()
except Exception:
if session_server:
session = clt.waitNS("/Kernel/Session")
catalog = clt.waitNS("/Kernel/ModulCatalog")
- studyMgr = clt.waitNS("/myStudyManager")
+ study = clt.waitNS("/Study")
import salome
salome.salome_init()