[libvirt] [PATCH libvirt-python 12/14] Add build/ to python module path for sanitytest.py
Daniel P. Berrange
berrange at redhat.com
Tue Nov 12 18:21:55 UTC 2013
From: "Daniel P. Berrange" <berrange at redhat.com>
The generated libvirt.py modules will be in the build/
directory, so santitytest.py must use that directory.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
sanitytest.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sanitytest.py b/sanitytest.py
index ace6792..517054b 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -1,5 +1,9 @@
#!/usr/bin/python
+import sys
+
+sys.path.insert(0, sys.argv[1])
+
import libvirt
globals = dir(libvirt)
--
1.8.3.1
More information about the libvir-list
mailing list