[FIX]Hy Base : bad args expansion on xml-write macro

This commit is contained in:
Fabien BOURGEOIS 2019-09-16 18:57:28 +02:00
parent 9a7027622f
commit a4a4539528

View File

@ -54,7 +54,7 @@
"Write XML file according to filename and given tree"
`(do
(import [os [path]])
(setv ~g!output-xml (.tostring ET tree)
(setv ~g!output-xml (.tostring ET ~tree)
~g!output-path (.dirname path (.abspath path __file__))
~g!fpath (+ ~g!output-path "/" ~g!filename))
~g!fpath (+ ~g!output-path "/" ~filename))
(with [f (open ~g!fpath "w")] (.write f ~g!output-xml))))