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

Function default_base_configdir

common/configdir.c:115–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115static 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
126static char *default_rpcfile(const tal_t *ctx)
127{

Callers 1

initial_config_optsFunction · 0.85

Calls 2

path_cwdFunction · 0.85
path_joinFunction · 0.85

Tested by

no test coverage detected