[FIX]Hy Base : bad args expansion on xml-write macro
This commit is contained in:
parent
9a7027622f
commit
a4a4539528
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user