Version: 9.15.0
Utils_Identity Namespace Reference

Module to get information about user and version. More...

Data Structures

class  Identity
 

Functions

def getShortHostName ()
 
def getapplipath ()
 
def version ()
 

Variables

string versnb = ""
 
string dirname = ".salome"
 

Detailed Description

Module to get information about user and version.

Function Documentation

◆ getapplipath()

def Utils_Identity.getapplipath ( )
  Gives short application path (the complete path is $HOME/$APPLI)

◆ getShortHostName()

def Utils_Identity.getShortHostName ( )
gives Hostname without domain extension.

SALOME naming service needs short Hostnames (without domain extension).
HOSTNAME is not always defined in environment,
socket.gethostname() gives short or complete Hostname, depending on
defined aliases.

Referenced by killSalomeWithPort.__guessPiDictFilename(), runSession.configureSession(), SALOME_ContainerPy.SALOME_ContainerPy_i.start_impl(), runSalomeOld.startSalome(), LifeCycleCORBA_SWIGTest.LifeCycleCORBA_SWIGTest.test006_FindOrLoad_Component_LaunchContainerHostname(), and LifeCycleCORBA_SWIGTest.LifeCycleCORBA_SWIGTest.test007_FindOrLoad_Component_SameContainer().

◆ version()

def Utils_Identity.version ( )
  Gives salome version number

Referenced by SALOMEDS_AttributeStudyProperties_i.GetComponentVersion().

Variable Documentation

◆ dirname

string Utils_Identity.dirname = ".salome"

◆ versnb

string Utils_Identity.versnb = ""