Minor fix
This commit is contained in:
parent
2eab10324f
commit
1671ae0ee3
|
@ -1,14 +1,13 @@
|
||||||
(define *configuration* '())
|
(define *configuration* '())
|
||||||
|
|
||||||
(define (init-config config-file)
|
(define (init-config config-file)
|
||||||
(with-input-file
|
(with-input-from-file
|
||||||
config-file
|
config-file
|
||||||
(set! *configuration* (read))))
|
(set! *configuration* (read))))
|
||||||
|
|
||||||
(define (read-config config-file)
|
(define (read-config config-file)
|
||||||
(call-with-input-file config-file read))
|
(call-with-input-file config-file read))
|
||||||
|
|
||||||
(define (config option)
|
|
||||||
(let ((probe (assq option *configuration*)))
|
|
||||||
(define (config-file-to-use)
|
(define (config-file-to-use)
|
||||||
(let ((from-env (getenv "CMDRSRC"))
|
(let ((from-env (getenv "CMDRSRC"))
|
||||||
(default-location
|
(default-location
|
||||||
|
|
Loading…
Reference in New Issue