setup/dirs: fix "config.rktd" reader

This commit is contained in:
Matthew Flatt 2013-08-22 10:44:26 -06:00
parent e7d300d238
commit 52da62a956
2 changed files with 10 additions and 2 deletions

View File

@ -49,6 +49,13 @@
(test #t system* exec-path "-l" "raco" "make" "-j" "2" (path->string relpath))
(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)

View File

@ -24,8 +24,9 @@
(call-with-input-file*
p
(lambda (in)
(parameterize ([current-readtable (make-readtable #f)])
(read in))))
(call-with-default-reading-parameterization
(lambda ()
(read in)))))
#hash()))
#hash()))))