Package gavo :: Package utils :: Module fancyconfig :: Class PathRelativeConfigItem
[frames] | no frames]

Class PathRelativeConfigItem

source code

  object --+        
           |        
  ConfigItem --+    
               |    
StringConfigItem --+
                   |
                  PathRelativeConfigItem
Known Subclasses:

A configuration item interpreted relative to a path given in the general section.

Basically, this is a replacement for configparser's %(x)s interpolation. In addition, we expand ~ in front of a value to the current value of $HOME.

To enable general-type interpolation, override the baseKey class Attribute.

Instance Methods

Inherited from ConfigItem: __init__, getAsString, set

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  baseKey = None
hash(x)

Inherited from StringConfigItem: default, typedesc

Properties
  value

Inherited from object: __class__

Property Details

value

Get Method:
_getValue(self)
Set Method:
_setValue(self, val)