[varLib.designspace] Add main functionality
Loads designspace file from commandline and pretty-prints it.
This commit is contained in:
parent
e69960cce0
commit
5a21b60ed9
@ -105,3 +105,9 @@ def load(filename):
|
||||
def loads(string):
|
||||
"""Load designspace from a string."""
|
||||
return _load(ET.fromstring(string))
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
from pprint import pprint
|
||||
for f in sys.argv[1:]:
|
||||
pprint(load(f))
|
||||
|
Loading…
x
Reference in New Issue
Block a user