diff --git a/host/chez/io.ss b/host/chez/io.ss index ab9287b..0805bf8 100644 --- a/host/chez/io.ss +++ b/host/chez/io.ss @@ -211,7 +211,7 @@ ;; a byte input-stream shim (e.g. clj-http-lite's :as :stream body): drain it. ((and (htable? src) (jolt-truthy? (jolt-ref-get src (keyword "jolt" "input-stream")))) (decode-bytevector (drain-byte-stream src) (slurp-encoding opts))) - ((string? src) (read-file-string src)) + ((string? src) (read-file-string (project-relative src))) (else (error #f "slurp: unsupported source" src)))) (define (spit-append? opts) @@ -300,7 +300,7 @@ ((embedded-res? x) (host-new "StringReader" (embedded-res-content x))) ((and (jhost? x) (string=? (jhost-tag x) "url")) (host-new "StringReader" (read-file-string (url-strip-scheme (url-spec x))))) - ((string? x) (host-new "StringReader" (read-file-string x))) + ((string? x) (host-new "StringReader" (read-file-string (project-relative x)))) ((or (cseq? x) (empty-list-t? x) (pvec? x)) (host-new "StringReader" (seq-source->string x))) (else (host-new "StringReader" (jolt-str-render-one x)))))