Bulk rename/move files to '8' directories
Perform a bulk rename/move of many files and folders: paths previously prefixed with '01', '02', '03', '04', etc. were relocated to equivalent paths prefixed with '8'. Changes are path-only (R100 renames) and do not modify file contents; this reorganizes the repository structure.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from lxml import etree
|
||||
|
||||
xml = etree.parse("specialities.xml")
|
||||
|
||||
xslt = etree.parse("specialities.xsl")
|
||||
|
||||
transform = etree.XSLT(xslt)
|
||||
|
||||
result = transform(xml)
|
||||
|
||||
with open("specialities.html", "wb") as f:
|
||||
f.write(etree.tostring(result, pretty_print=True, encoding="UTF-8"))
|
||||
|
||||
print("HTML успешно создан: specialities.html")
|
||||
Reference in New Issue
Block a user