minor cleanup, update for node tools

This commit is contained in:
The MMGen Project 2023-11-05 13:41:32 +00:00
commit a5766aae1d
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
5 changed files with 6 additions and 4 deletions

View file

@ -1 +1 @@
October 2023
November 2023

View file

@ -1 +1 @@
14.0.dev10
14.0.dev11

View file

@ -189,6 +189,7 @@ def fmt_list(iterable,fmt='dfl',indent='',conv=None):
'utf8': ( str, ", ", "", ""),
'bare': ( repr, " ", "", ""),
'no_quotes': ( str, ", ", "", ""),
'compact': ( str, ",", "", ""),
'no_spc': ( str, ",", "'", "'"),
'min': ( str, ",", "", ""),
'repr': ( repr, ", ", "", ""),
@ -205,6 +206,7 @@ def fmt_dict(mapping,fmt='dfl',kconv=None,vconv=None):
'square': ( str, str, ", ", "'{}' [{}]" ),
'equal': ( str, str, ", ", "'{}'={}" ),
'equal_spaced': ( str, str, ", ", "'{}' = {}" ),
'equal_compact': ( str, str, ",", "'{}'={}" ),
'kwargs': ( str, repr, ", ", "{}={}" ),
'colon': ( str, repr, ", ", "{}:{}" ),
}[fmt]

View file

@ -15,7 +15,7 @@ test.include.coin_daemon_control: Start and stop daemons for the MMGen test suit
import sys
from pathlib import PurePath
sys.path[0] = str(PurePath(*PurePath(sys.modules[__name__].__file__).parts[:-3]))
sys.path[0] = str(PurePath(*PurePath(__file__).parts[:-3]))
from mmgen.cfg import Config,gc
from mmgen.util import msg,die,oneshot_warning,async_run

View file

@ -15,7 +15,7 @@ test.include.test_init: Initialization module for test scripts
import sys,os
from pathlib import PurePath
os.environ['MMGEN_TEST_SUITE'] = '1'
repo_root = str(PurePath(*PurePath(sys.modules[__name__].__file__).parts[:-3]))
repo_root = str(PurePath(*PurePath(__file__).parts[:-3]))
os.chdir(repo_root)
sys.path[0] = repo_root