Minor fix

This commit is contained in:
mainzelm 2005-10-11 15:38:18 +00:00
parent 2eab10324f
commit 1671ae0ee3
1 changed files with 2 additions and 3 deletions

View File

@ -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