summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-11-12 18:21:55 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-11-22 14:44:48 +0000
commitef67d98c89ace90632d685ccde3fc4274e7e6612 (patch)
tree633a5a2e52f1df991f5b2e9ce1c87b5a1e4fef01
parent4fa06f7dbbf9ad24a75ac6bac386ab0c7753e1d7 (diff)
downloadlibvirt-python-v8-ef67d98c89ace90632d685ccde3fc4274e7e6612.tar.gz
libvirt-python-v8-ef67d98c89ace90632d685ccde3fc4274e7e6612.tar.xz
libvirt-python-v8-ef67d98c89ace90632d685ccde3fc4274e7e6612.zip
Add build/ to python module path for sanitytest.py
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@redhat.com>
-rw-r--r--sanitytest.py4
1 files changed, 4 insertions, 0 deletions
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)