[PATCH] python: Fix bindings generated in VPATH build

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

 



---
 python/generator.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/generator.py b/python/generator.py
index d855d6b..79558dd 100755
--- a/python/generator.py
+++ b/python/generator.py
@@ -1168,13 +1168,13 @@ def buildWrappers(module):
         function_classes['None'].append(info)
 
     classes_file = "%s.py" % module
-    extra_file = "%s-override.py" % module
+    extra_file = os.path.join(srcPref, "%s-override.py" % module)
     extra = None
 
     classes = open(classes_file, "w")
 
     if os.path.exists(extra_file):
-        extra = open(os.path.join(srcPref,extra_file), "r")
+        extra = open(extra_file, "r")
     classes.write("#! " + python + " -i\n")
     classes.write("#\n")
     classes.write("# WARNING WARNING WARNING WARNING\n")
@@ -1620,13 +1620,13 @@ def qemuBuildWrappers(module):
         print "ERROR: only libvirt-qemu is supported"
         return None
 
-    extra_file = "%s-override.py" % module
+    extra_file = os.path.join(srcPref, "%s-override.py" % module)
     extra = None
 
     fd = open("libvirt_qemu.py", "w")
 
     if os.path.exists(extra_file):
-        extra = open(os.path.join(srcPref,extra_file), "r")
+        extra = open(extra_file, "r")
     fd.write("#! " + python + " -i\n")
     fd.write("#\n")
     fd.write("# WARNING WARNING WARNING WARNING\n")
-- 
1.7.6.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]