summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-09-06 19:05:03 +0100
committerDaniel P. Berrange <berrange@redhat.com>2013-11-12 18:02:07 +0000
commitcf26be3ef3b2d262261ac7ef1db09961355ca27a (patch)
treef935f8f639e2406325c041cd906392ad3245bffc
parentb3d1e58b6e0d2317015660c440960844e54940b0 (diff)
downloadlibvirt-python-v6-cf26be3ef3b2d262261ac7ef1db09961355ca27a.tar.gz
libvirt-python-v6-cf26be3ef3b2d262261ac7ef1db09961355ca27a.tar.xz
libvirt-python-v6-cf26be3ef3b2d262261ac7ef1db09961355ca27a.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)