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
|
Rev | Line | |
---|
[726] | 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 |
---|
Note: See
TracBrowser
for help on using the repository browser.