ConfigServiceImpl

This a python binding to the C++ class Mantid::Kernel::ConfigServiceImpl.

class mantid.kernel.ConfigServiceImpl
Instance() → ConfigServiceImpl :

Returns a reference to the ConfigService

__init__()

Raises an exception This class cannot be instantiated from Python

appendDataSearchDir((ConfigServiceImpl)self, (str)path) → None :

Append a directory to the current list of data search paths

getDataSearchDirs((ConfigServiceImpl)self) → std_vector_str :

Return the current list of data search paths

getFacilities((ConfigServiceImpl)self) → std_vector_facilityinfo :

Returns the default facility

getFacility((ConfigServiceImpl)self) → FacilityInfo :
Returns the default facility
getFacility( (ConfigServiceImpl)self, (str)facilityName) -> FacilityInfo :
Returns the named facility. Raises an RuntimeError if it does not exist
getFacilityNames((ConfigServiceImpl)self) → std_vector_str :

Returns the default facility

getInstrument((ConfigServiceImpl)self[, (str)instrumentName='']) → InstrumentInfo :

Returns the named instrument. If name = “” then the default.instrument is returned

getInstrumentDirectories((ConfigServiceImpl)self) → std_vector_str :

Returns the list of directories searched for the instrument definitions

getInstrumentDirectory((ConfigServiceImpl)self) → str :

Returns the directory used for the instrument definitions

getLocalFilename((ConfigServiceImpl)self) → str :

Returns the path to the system wide properties file.

getString((ConfigServiceImpl)self, (str)key[, (bool)use_cache=True]) → str :

Returns the named key’s value. If use_cache = true [default] then relative paths->absolute

getUserFilename((ConfigServiceImpl)self) → str :

Returns the path to the user properties file

getUserPropertiesDir((ConfigServiceImpl)self) → str :

Returns the directory to use to write out Mantid information

hasProperty((ConfigServiceImpl)self, (str)rootName) → bool
keys((ConfigServiceImpl)self) → std_vector_str
reset((ConfigServiceImpl)self) → None :

Clears all user settings and removes the user properties file

saveConfig((ConfigServiceImpl)self, (str)filename) → None :

Saves the keys that have changed from their default to the given filename

setConsoleLogLevel((ConfigServiceImpl)self, (int)logLevel) → None :

Sets the log level priority for the Console log channel, logLevel 1 = Fatal, 6 = information, 7 = Debug

setDataSearchDirs((ConfigServiceImpl)self, (str)searchDirs) → None :
Set the whole datasearch.directories property from a single string. Entries should be separated by a ; character
setDataSearchDirs( (ConfigServiceImpl)self, (list)searchDirs) -> None :
Set the datasearch.directories property from a list of strings.
setFacility((ConfigServiceImpl)self, (str)facilityName) → None :

Sets the current facility to the given name

setFileLogLevel((ConfigServiceImpl)self, (int)logLevel) → None :

Sets the log level priority for the File log channel, logLevel 1 = Fatal, 6 = information, 7 = Debug

setString((ConfigServiceImpl)self, (str)key, (str)value) → None :

Set the given property name. If it does not exist it is added to the current configuration

updateFacilities((ConfigServiceImpl)self, (str)fileName) → None :

Loads facility information from a provided file