setup/dirs: fix "config.rktd" reader
This commit is contained in:
parent
e7d300d238
commit
52da62a956
|
@ -49,6 +49,13 @@
|
||||||
(test #t system* exec-path "-l" "raco" "make" "-j" "2" (path->string relpath))
|
(test #t system* exec-path "-l" "raco" "make" "-j" "2" (path->string relpath))
|
||||||
(delete-directory/files tmpdir))
|
(delete-directory/files tmpdir))
|
||||||
|
|
||||||
|
;; ----------------------------------------
|
||||||
|
;; Make sure that setting the reader doesn't break reading a configuration file:
|
||||||
|
|
||||||
|
(parameterize ([current-namespace (make-base-namespace)]
|
||||||
|
[read-accept-dot #f])
|
||||||
|
((dynamic-require 'setup/dirs 'get-pkgs-search-dirs)))
|
||||||
|
|
||||||
;; ----------------------------------------
|
;; ----------------------------------------
|
||||||
|
|
||||||
(report-errs)
|
(report-errs)
|
||||||
|
|
|
@ -24,8 +24,9 @@
|
||||||
(call-with-input-file*
|
(call-with-input-file*
|
||||||
p
|
p
|
||||||
(lambda (in)
|
(lambda (in)
|
||||||
(parameterize ([current-readtable (make-readtable #f)])
|
(call-with-default-reading-parameterization
|
||||||
(read in))))
|
(lambda ()
|
||||||
|
(read in)))))
|
||||||
#hash()))
|
#hash()))
|
||||||
#hash()))))
|
#hash()))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user