fix guide's use of current-directory at compile time
This commit is contained in:
parent
47eb8ea815
commit
cd95e082d7
|
@ -11,7 +11,9 @@
|
|||
(define-syntax (racketmodfile stx)
|
||||
(syntax-case stx ()
|
||||
[(_ file)
|
||||
(let ([f (path->complete-path (syntax-e #'file))])
|
||||
(let ([f (path->complete-path (syntax-e #'file)
|
||||
(or (current-load-relative-directory)
|
||||
(current-directory)))])
|
||||
(register-external-file f)
|
||||
(with-syntax ([(content ...)
|
||||
(call-with-input-file*
|
||||
|
|
Loading…
Reference in New Issue
Block a user