projects
/
invirt/packages/invirt-base.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
started adding simple configuration-loading module and getconfig frontend; checkpoint...
[invirt/packages/invirt-base.git]
/
files
/
usr
/
share
/
python-support
/
sipb-xen-base
/
invirt
/
config.py
1
from __future__ import with_statement
2
import yaml
3
4
default_path = '/etc/invirt/master.yaml'
5
6
def 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