projects
/
invirt/packages/invirt-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git a/files/usr/share/python-support/sipb-xen-base/invirt/config.py
b/files/usr/share/python-support/sipb-xen-base/invirt/config.py
new file mode 100644
(file)
index 0000000..
42e3b2f
--- /dev/null
+++ b/
files/usr/share/python-support/sipb-xen-base/invirt/config.py
@@ -0,0
+1,10
@@
+from __future__ import with_statement
+import yaml
+
+default_path = '/etc/invirt/master.yaml'
+
+def load( path = default_path ):
+ with file( path ) as f:
+ return yaml.load( f, yaml.CSafeLoader )
+
+# vim:et:sw=4:ts=4