summaryrefslogtreecommitdiff
path: root/scheme/guile/geiser/eval.scm
diff options
context:
space:
mode:
Diffstat (limited to 'scheme/guile/geiser/eval.scm')
-rw-r--r--scheme/guile/geiser/eval.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/scheme/guile/geiser/eval.scm b/scheme/guile/geiser/eval.scm
index 1400566..8a7f48f 100644
--- a/scheme/guile/geiser/eval.scm
+++ b/scheme/guile/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)