Skip to content

Commit a3fc21f

Browse files
committed
make variable names clearer
1 parent c0559a1 commit a3fc21f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/composite-svg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
import xml.etree.ElementTree as ET
33

44
svg = "{http://www.w3.org/2000/svg}"
5-
fType = sys.argv[1] # Type file
6-
fBase = sys.argv[2] # Base file
5+
fTop = sys.argv[1] # Type file
6+
fBottom = sys.argv[2] # Base file
77
fTarget = sys.argv[3] # Target file
88

99
# All svg elements and definitions are copied from file 1 to file 2
1010
# File 1's contents will appear on top of File 2's contents, so File 2 should only be the base shape
1111
# It is assumed that both files have the same dimensions, and that elements are aligned properly
1212

13-
tTree = ET.parse(fType)
13+
tTree = ET.parse(fTop)
1414
tRoot = tTree.getroot()
1515
defs = tRoot.find(f"{svg}defs")
1616

@@ -23,7 +23,7 @@
2323
shapes.append(element)
2424

2525
# Now we take all of those defs and shapes, then add them to the tree of our base file
26-
bTree = ET.parse(fBase)
26+
bTree = ET.parse(fBottom)
2727
bRoot = bTree.getroot()
2828
bDefs = bRoot.find(f"{svg}defs")
2929

0 commit comments

Comments
 (0)