mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2025-01-10 21:11:21 +00:00
Fix typo
This commit is contained in:
parent
5fceda2e86
commit
b8c94a80fc
@ -8,7 +8,7 @@ from typing import (
|
|||||||
)
|
)
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from eth2deposit.utils.constants import INTL_CONETENT_PATH
|
from eth2deposit.utils.constants import INTL_CONTENT_PATH
|
||||||
|
|
||||||
|
|
||||||
def _get_from_dict(dataDict: Dict[str, Any], mapList: List[str]) -> str:
|
def _get_from_dict(dataDict: Dict[str, Any], mapList: List[str]) -> str:
|
||||||
@ -34,7 +34,7 @@ def load_text(lang: str, params: List[str], file_path: str='', func: str='') ->
|
|||||||
# Determine path to json text
|
# Determine path to json text
|
||||||
file_path_list = os.path.normpath(file_path).split(os.path.sep)
|
file_path_list = os.path.normpath(file_path).split(os.path.sep)
|
||||||
rel_path_list = file_path_list[file_path_list.index('eth2deposit') + 1:]
|
rel_path_list = file_path_list[file_path_list.index('eth2deposit') + 1:]
|
||||||
json_path = os.path.join(INTL_CONETENT_PATH, lang, *rel_path_list)
|
json_path = os.path.join(INTL_CONTENT_PATH, lang, *rel_path_list)
|
||||||
|
|
||||||
# browse json until text is found
|
# browse json until text is found
|
||||||
with open(json_path) as f:
|
with open(json_path) as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user