[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"
|
"Write XML file according to filename and given tree"
|
||||||
`(do
|
`(do
|
||||||
(import [os [path]])
|
(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!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))))
|
(with [f (open ~g!fpath "w")] (.write f ~g!output-xml))))
|
||||||
|
Loading…
Reference in New Issue
Block a user