1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-22 19:34:08 +03:00

python: Fix bindings generated in VPATH build

This commit is contained in:
Jiri Denemark
2011-09-16 11:46:46 +02:00
parent e9f55e4688
commit 018f2e5c9f

View File

@@ -1168,13 +1168,13 @@ def buildWrappers(module):
function_classes['None'].append(info) function_classes['None'].append(info)
classes_file = "%s.py" % module classes_file = "%s.py" % module
extra_file = "%s-override.py" % module extra_file = os.path.join(srcPref, "%s-override.py" % module)
extra = None extra = None
classes = open(classes_file, "w") classes = open(classes_file, "w")
if os.path.exists(extra_file): 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("#! " + python + " -i\n")
classes.write("#\n") classes.write("#\n")
classes.write("# WARNING WARNING WARNING WARNING\n") classes.write("# WARNING WARNING WARNING WARNING\n")
@@ -1620,13 +1620,13 @@ def qemuBuildWrappers(module):
print "ERROR: only libvirt-qemu is supported" print "ERROR: only libvirt-qemu is supported"
return None return None
extra_file = "%s-override.py" % module extra_file = os.path.join(srcPref, "%s-override.py" % module)
extra = None extra = None
fd = open("libvirt_qemu.py", "w") fd = open("libvirt_qemu.py", "w")
if os.path.exists(extra_file): 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("#! " + python + " -i\n")
fd.write("#\n") fd.write("#\n")
fd.write("# WARNING WARNING WARNING WARNING\n") fd.write("# WARNING WARNING WARNING WARNING\n")