Belle II Software  release-08-01-10
EnvironmentInformation Class Reference
Inheritance diagram for EnvironmentInformation:

Public Member Functions

def __init__ (self)
 
def revision_number (self)
 
def __str__ (self)
 
def __repr__ (self)
 
def get_current_revision_number (self)
 

Public Attributes

 externals_version
 Externals version.
 
 externals_option
 Compile options of externals.
 
 option
 Compile options.
 
 architecture
 OS.
 
 release
 Release version.
 
 release_folder
 Release folder.
 

Private Attributes

 _cached_revision
 Revision number (cached, the real getter is the property)
 

Detailed Description

Helper class for accessing the information about the environment.

Definition at line 12 of file information.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Get the variables from the environment variables.

Reimplemented in Basf2EnvironmentInformation.

Definition at line 18 of file information.py.

18  def __init__(self):
19  """
20  Get the variables from the environment variables.
21  """
22 
23  self.externals_version = ""
24 
25  self.externals_option = ""
26 
27  self.option = ""
28 
29  self.architecture = ""
30 
31  self.release = ""
32 
33  self.release_folder = ""
34 
35  self._cached_revision = ""
36 

Member Function Documentation

◆ __repr__()

def __repr__ (   self)
Also for ipython.

Definition at line 62 of file information.py.

◆ __str__()

def __str__ (   self)
A nice representation.

Definition at line 47 of file information.py.

◆ get_current_revision_number()

def get_current_revision_number (   self)
Try to download the current revision number from SVN.

Definition at line 68 of file information.py.

◆ revision_number()

def revision_number (   self)
Get the cached revision number from SVN or get it from SVN directly.

Definition at line 38 of file information.py.


The documentation for this class was generated from the following file: