Version: 6.5.0
salome_session Namespace Reference

Module that provides the SalomeSession object that helps to launch a SALOME script session. More...

Data Structures

class  SalomeSession
 

Functions

def startSession
 
def getShortHostName ()
 
def searchFreePort ()
 

Variables

 _session = None
 

Detailed Description

Module that provides the SalomeSession object that helps to launch a SALOME script session.

Function Documentation

def salome_session.getShortHostName ( )
gives Hostname without domain extension.
SALOME naming service needs short Hostnames (without domain extension).
HOSTNAME is not allways defined in environment,
socket.gethostname() gives short or complete Hostname, depending on
defined aliases.
def salome_session.searchFreePort ( )
Search free port for SALOME session.
Returns first found free port number.
Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS