reader: sxml-reader: Use absolute path when loading Scheme file.
* haunt/reader.scm (sxml-reader): Call 'load' with an absolute file name.
This commit is contained in:
parent
ad9c4b23dd
commit
be627c2cab
|
@ -95,7 +95,7 @@ list must contain a matching reader for every post."
|
||||||
(define sxml-reader
|
(define sxml-reader
|
||||||
(make-reader (make-file-extension-matcher "sxml")
|
(make-reader (make-file-extension-matcher "sxml")
|
||||||
(lambda (file-name)
|
(lambda (file-name)
|
||||||
(let ((contents (load file-name)))
|
(let ((contents (load (absolute-file-name file-name))))
|
||||||
(values (alist-delete 'content contents eq?)
|
(values (alist-delete 'content contents eq?)
|
||||||
(assq-ref contents 'content))))))
|
(assq-ref contents 'content))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue