From: "Daniel P. Berrange" <berrange(a)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(a)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