| 113 | } |
| 114 | |
| 115 | static char *default_base_configdir(const tal_t *ctx) |
| 116 | { |
| 117 | char *path; |
| 118 | const char *env = getenv("HOME"); |
| 119 | if (!env) |
| 120 | return path_cwd(ctx); |
| 121 | |
| 122 | path = path_join(ctx, env, ".lightning"); |
| 123 | return path; |
| 124 | } |
| 125 | |
| 126 | static char *default_rpcfile(const tal_t *ctx) |
| 127 | { |
no test coverage detected