Skip to content

Commit

Permalink
translate logical paths for ABCL
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Oct 16, 2024
1 parent 945c4e0 commit 0df344d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/kernel.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,10 @@
(:documentation "Save the code to the provided source-path.")
(:method (kernel code source-path)
(declare (ignore kernel))
(ensure-directories-exist source-path)
(with-open-file (stream source-path :direction :output :if-exists :supersede)
(write-string code stream))))
(let ((path (translate-logical-pathname source-path)))
(ensure-directories-exist path)
(with-open-file (stream path :direction :output :if-exists :supersede)
(write-string code stream)))))


(defgeneric debug-evaluate-code (kernel environment code frame context)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def sanitize_path(p):
@pytest.fixture(
params=[
"common-lisp",
#"common-lisp_abcl",
"common-lisp_abcl",
"common-lisp_ccl",
"common-lisp_clasp",
"common-lisp_clisp",
Expand Down

0 comments on commit 0df344d

Please sign in to comment.