We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 275707e commit 2a67068Copy full SHA for 2a67068
src/uclj/core.clj
@@ -561,10 +561,11 @@
561
(defmethod seq->eval-node lf [&a _ [_ fname]]
562
(let [arg (->eval-node &a nil fname)]
563
(gen-eval-node
564
- (with-open [in (new java.io.PushbackReader (io/reader (io/file (evalme arg &b))))]
565
- (doseq [read (repeatedly #(read {:eof ::eof} in))
566
- :while (not= ::eof read)]
567
- (evaluator read)))))))
+ (binding [*file* (io/file (evalme arg &b))]
+ (with-open [in (new java.io.PushbackReader (io/reader *file*))]
+ (doseq [read (repeatedly #(read {:eof ::eof} in))
+ :while (not= ::eof read)]
568
+ (evaluator read))))))))
569
570
;; Needed by (ns) forms.
571
(defmethod seq->eval-node 'clojure.core/with-loading-context [&a _ [_ & bodies]]
0 commit comments