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

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

started adding simple configuration-loading module and getconfig frontend; checkpoint for moving dev to home machine which actually has yaml, etc.

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