1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-02 04:21:59 +03:00

* docs/examples/examples.xsl docs/examples/index.html

docs/site.xsl: integates the examples page in the web site
* docs//* : fixed generator and rebuilt the docs
* python/tests/basic.py python/tests/create.py: couple cleanups
Daniel
This commit is contained in:
Daniel Veillard
2006-02-20 20:50:48 +00:00
parent 45d8ba76e4
commit 6ca66f6ed0
2 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,11 @@
#!/usr/bin/python -u
import libvirt
import sys
import os
if not os.access("/proc/xen", os.R_OK):
print 'System is not running a Xen kernel'
sys.exit(1)
conn = libvirt.openReadOnly(None)
if conn == None: