]> xenbits.xensource.com Git - libvirt.git/commitdiff
python: Fix bindings generated in VPATH build
authorJiri Denemark <jdenemar@redhat.com>
Fri, 16 Sep 2011 09:46:46 +0000 (11:46 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 16 Sep 2011 15:07:57 +0000 (17:07 +0200)
python/generator.py

index d855d6b51017db206f7f235fc9b485f7d8a3de5a..79558ddbd6e2ccb3386bb94c37849631895522c8 100755 (executable)
@@ -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")