source: trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py @ 733

Last change on this file since 733 was 733, checked in by y_z, 16 years ago

simple initial version of invirt-getconf simply reads & navigates yaml; fixed permissions

File size: 304 bytes
Line 
1from __future__ import with_statement
2import yaml
3
4default_path = '/etc/invirt/master.yaml'
5
6try:    default_loader = yaml.CSafeLoader
7except: default_loader = yaml.SafeLoader
8
9def load( path = default_path ):
10    with file( path ) as f:
11        return yaml.load( f, default_loader )
12
13# vim:et:sw=4:ts=4
Note: See TracBrowser for help on using the repository browser.