From a3fc21fb2a960a8932c75de334d9b3e187f472d5 Mon Sep 17 00:00:00 2001 From: William Kelso Date: Sat, 25 Jan 2025 13:48:36 -0500 Subject: [PATCH] make variable names clearer --- scripts/composite-svg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/composite-svg.py b/scripts/composite-svg.py index f7692eb41..970c80da2 100644 --- a/scripts/composite-svg.py +++ b/scripts/composite-svg.py @@ -2,15 +2,15 @@ import xml.etree.ElementTree as ET svg = "{http://www.w3.org/2000/svg}" -fType = sys.argv[1] # Type file -fBase = sys.argv[2] # Base file +fTop = sys.argv[1] # Type file +fBottom = sys.argv[2] # Base file fTarget = sys.argv[3] # Target file # All svg elements and definitions are copied from file 1 to file 2 # File 1's contents will appear on top of File 2's contents, so File 2 should only be the base shape # It is assumed that both files have the same dimensions, and that elements are aligned properly -tTree = ET.parse(fType) +tTree = ET.parse(fTop) tRoot = tTree.getroot() defs = tRoot.find(f"{svg}defs") @@ -23,7 +23,7 @@ shapes.append(element) # Now we take all of those defs and shapes, then add them to the tree of our base file -bTree = ET.parse(fBase) +bTree = ET.parse(fBottom) bRoot = bTree.getroot() bDefs = bRoot.find(f"{svg}defs")