[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH libvirt-python 15/17] Add build/ to python module path for sanitytest.py



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]