Skip to content

Commit 9f1e0d3

Browse files
committed
move hard-codd path from utils to paths
1 parent c86b42f commit 9f1e0d3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

py/paths.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
BIN = os.path.join(LN, "bin")
55
DATA = os.path.join(LN, "data")
66
FEE_ESTIMATIONS_DIR = os.path.join(LN, "data", "fee-estimations")
7+
CACHES_DIR = os.path.join(DATA, "caches")
78

89
CLIGHTNING_CONF_PATH = os.path.join(LN, "conf/clightning.conf")
910
LND_CONF_PATH = os.path.join(LN, "conf/lnd.conf")

py/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import plyvel
1313

1414
from datatypes import Json
15+
from paths import CACHES_DIR
1516

1617

1718
def print_json(o: Json):
@@ -93,9 +94,6 @@ def setup_logging(
9394
return logger
9495

9596

96-
CACHES_DIR = os.path.join(os.path.expandvars("$LN"), "data", "caches")
97-
98-
9997
def get_db_str_key(*args, **kwargs) -> str:
10098
"""
10199
this methods return a string representation of its arguments.

0 commit comments

Comments
 (0)