HOME expansion
This commit is contained in:
parent
35f53f196e
commit
fc80430217
3 changed files with 7 additions and 6 deletions
|
@ -32,8 +32,7 @@ exit 0
|
|||
APIURI=https://www.fio.cz/ib_api/rest
|
||||
|
||||
# Configuration defaults - none
|
||||
# TODO: quick fix
|
||||
CONFIG_FILE=/home/hackerbase/.hackerbaserc
|
||||
CONFIG_FILE="$HOME/.hackerbaserc"
|
||||
CFG_BANK_DIR=
|
||||
CFG_APIKEYS_FILE=
|
||||
ARG_BANK_DIR=
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
APIURI=https://www.fio.cz/ib_api/rest
|
||||
|
||||
# Configuration defaults - none
|
||||
# TODO: quick fix
|
||||
CONFIG_FILE=/home/hackerbase/.hackerbaserc
|
||||
CONFIG_FILE="$HOME/.hackerbaserc"
|
||||
CFG_BANK_DIR=
|
||||
CFG_APIKEYS_FILE=
|
||||
ARG_BANK_DIR=
|
||||
|
|
|
@ -47,6 +47,8 @@
|
|||
(chicken time posix)
|
||||
(chicken file)
|
||||
(chicken io)
|
||||
(chicken process-context)
|
||||
(chicken pathname)
|
||||
util-parser)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
@ -55,8 +57,9 @@
|
|||
;; Where to load initial configuration from
|
||||
(define *etc-hackerbase* (make-parameter
|
||||
(list "/etc/hackerbase"
|
||||
;; TODO: $HOME expansion
|
||||
"/home/hackerbase/.hackerbaserc")))
|
||||
(make-pathname
|
||||
(get-environment-variable "HOME")
|
||||
".hackerbaserc"))))
|
||||
|
||||
;; Needed by multiple modules actually
|
||||
(define *members-directory* (make-parameter #f))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue