Skip to content

Commit

Permalink
record the start dir when loading SRFI 193
Browse files Browse the repository at this point in the history
Closes #922
  • Loading branch information
ashinn committed May 30, 2024
1 parent bfb6b4b commit 4b5ab83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/srfi/193.sld
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(only (chibi) command-line)
(only (meta) raw-script-file))
(begin
(define start-directory (current-directory))

(define (command-name)
(let ((filename (car (command-line))))
Expand All @@ -17,7 +18,7 @@
(define (script-file)
(and raw-script-file
(path-normalize
(path-resolve raw-script-file (current-directory)))))
(path-resolve raw-script-file start-directory))))

(define (script-directory)
(let ((filename (script-file)))
Expand Down

0 comments on commit 4b5ab83

Please sign in to comment.