| 160 | } |
| 161 | |
| 162 | static char *default_base_configdir(const tal_t *ctx) |
| 163 | { |
| 164 | char *path; |
| 165 | const char *env = getenv("HOME"); |
| 166 | if (!env) |
| 167 | return path_cwd(ctx); |
| 168 | |
| 169 | path = path_join(ctx, env, ".lightning"); |
| 170 | return path; |
| 171 | } |
| 172 | |
| 173 | static char *default_rpcfile(const tal_t *ctx) |
| 174 | { |
no test coverage detected