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

Class PathConfigItem

source code

  object --+        
           |        
  ConfigItem --+    
               |    
StringConfigItem --+
                   |
                  PathConfigItem

A ConfigItem for a unix shell-type path.

The individual items are separated by colons, ~ is replaced by the current value of $HOME (or "/", if unset), and $<key> substitutions are supported, with key having to point to a key in the defaultSection.

To embed a real $ sign, double it.

This is parented ConfigItem, i.e., it needs a Configuration parent before its value can be accessed.

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
  typedesc = 'shell-type path'

Inherited from StringConfigItem: default

Properties
  value

Inherited from object: __class__

Property Details

value

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