1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

python: Concat generated files in generator.py

This commit is contained in:
Dan Yeaw
2025-03-31 22:18:14 -04:00
committed by Nick Wellnhofer
parent fc4adba90e
commit ffef921be3
6 changed files with 16 additions and 38 deletions

View File

@@ -116,20 +116,6 @@ if missing("libxml2-py.c") or missing("libxml2.py"):
print(sys.exc_info()[0], sys.exc_info()[1])
sys.exit(1)
head = open("libxml.py", "r")
generated = open("libxml2class.py", "r")
result = open("libxml2.py", "w")
for line in head.readlines():
if WITHDLLS:
result.write(altImport(line))
else:
result.write(line)
for line in generated.readlines():
result.write(line)
head.close()
generated.close()
result.close()
with_xslt=0
if missing("libxslt-py.c") or missing("libxslt.py"):
if missing("xsltgenerator.py") or missing("libxslt-api.xml"):