ATLAS Offline Software
Loading...
Searching...
No Matches
python.PythonConfig Namespace Reference

Classes

class  PrivateToolConfig
class  PythonConfig
class  TestAlgPrivateTool
 Test case for using private tools. More...
class  TestAlgProperties
 Test case for the algorithm property handling. More...
class  TestAlgTypeAndName
 Test case for the algorithm type/name handling. More...

Functions

 stringPropValue (value)
 indentBy (propValue, indent)

Function Documentation

◆ indentBy()

python.PythonConfig.indentBy ( propValue,
indent )
Helper function used in the configuration printout

Definition at line 406 of file PythonConfig.py.

406def indentBy( propValue, indent ):
407 """Helper function used in the configuration printout"""
408
409 stringValue = str( propValue )
410 result = ""
411 for stringLine in stringValue.split( '\n' ):
412 if len( result ):
413 result += "\n" + indent
414 pass
415 result += stringLine
416 pass
417 return result
418
419
420#
421# Declare some unit tests for the code
422#
423

◆ stringPropValue()

python.PythonConfig.stringPropValue ( value)
Helper function producing a string property value

Definition at line 396 of file PythonConfig.py.

396def stringPropValue( value ):
397 """Helper function producing a string property value"""
398
399 stringValue = str( value )
400 if isinstance( value, bool ):
401 stringValue = str( int( value ) )
402 pass
403 return stringValue
404
405