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:
committed by
Nick Wellnhofer
parent
fc4adba90e
commit
ffef921be3
@@ -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"):
|
||||
|
Reference in New Issue
Block a user