minor cleanup, update for node tools
This commit is contained in:
parent
fbcacad0ac
commit
a5766aae1d
5 changed files with 6 additions and 4 deletions
|
|
@ -1 +1 @@
|
|||
October 2023
|
||||
November 2023
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
14.0.dev10
|
||||
14.0.dev11
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue