Use ./.ledgerrc if ~/.ledgerrc doesn't exist
This commit is contained in:
parent
de7d8466c0
commit
6439ea4799
1 changed files with 7 additions and 4 deletions
|
|
@ -144,6 +144,9 @@ void global_scope_t::read_init()
|
|||
} else {
|
||||
if (const char * home_var = std::getenv("HOME")) {
|
||||
init_file = (path(home_var) / ".ledgerrc");
|
||||
if (! exists(init_file)) {
|
||||
init_file = ("./.ledgerrc");
|
||||
}
|
||||
} else {
|
||||
init_file = ("./.ledgerrc");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue