summaryrefslogtreecommitdiff
path: root/geiser/eval.scm
diff options
context:
space:
mode:
Diffstat (limited to 'geiser/eval.scm')
-rw-r--r--geiser/eval.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/geiser/eval.scm b/geiser/eval.scm
index 1400566..8a7f48f 100644
--- a/geiser/eval.scm
+++ b/geiser/eval.scm
@@ -70,7 +70,9 @@ SUBR, MSG and REST."
(current (getcwd)))
(dynamic-wind
(lambda () (chdir dest))
- (lambda () (compile-file path))
+ (lambda ()
+ (and (compile-file path)
+ (load-compiled (string-append dest "/" (compiled-file-name path)))))
(lambda () (chdir current)))))
(define (load-file path)