MCPcopy Create free account
hub / github.com/ElementsProject/lightning / default_base_configdir

Function default_base_configdir

common/configdir.c:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static 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
173static char *default_rpcfile(const tal_t *ctx)
174{

Callers 2

initial_config_optsFunction · 0.85

Calls 2

path_cwdFunction · 0.85
path_joinFunction · 0.85

Tested by

no test coverage detected