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-09-09 16:42:02 +0100
commit61fdb35b8406abadcc3539e4d3c76ec296e7933f (patch)
tree61793a52f7a8ba63bdb5126e7368792b79c7d9bc
parent4351a4cda6d075182242bea44ccf662ae947bfe0 (diff)
downloadlibvirt-python-split-61fdb35b8406abadcc3539e4d3c76ec296e7933f.zip
libvirt-python-split-61fdb35b8406abadcc3539e4d3c76ec296e7933f.tar.gz
libvirt-python-split-61fdb35b8406abadcc3539e4d3c76ec296e7933f.tar.xz
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)