module rename: cfg.py -> cfgfile.py

This commit is contained in:
The MMGen Project 2023-03-27 10:48:19 +00:00
commit 80244b57ea
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
5 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
cfg: API for the MMGen runtime configuration file and related files
cfgfile: API for the MMGen runtime configuration file and related files
"""
# NB: This module is used by override_globals_from_cfg_file(), which is called before

View file

@ -368,7 +368,7 @@ def init(
cfgfile_autoset_opts = {}
if not (opt.skip_cfg_file or opt.bob or opt.alice or g.prog_name == 'mmgen-regtest'):
from .cfg import cfg_file
from .cfgfile import cfg_file
# check for changes in system template file - term must be initialized
cfg_file('sample')
override_globals_from_cfg_file(

View file

@ -4,7 +4,7 @@ from mmgen.common import *
cmd_args = opts.init()
from mmgen.cfg import cfg_file
from mmgen.cfgfile import cfg_file
cf_usr = cfg_file('usr')
cf_sys = cfg_file('sys')

View file

@ -17,7 +17,7 @@ from .common import *
cmd_groups_dfl = {
'misc': ('TestSuiteMisc',{}),
'opts': ('TestSuiteOpts',{'full_data':True}),
'cfg': ('TestSuiteCfg',{'full_data':True}),
'cfgfile': ('TestSuiteCfgFile',{'full_data':True}),
'helpscreens': ('TestSuiteHelp',{'modname':'misc','full_data':True}),
'main': ('TestSuiteMain',{'full_data':True}),
'conv': ('TestSuiteWalletConv',{'is3seed':True,'modname':'wallet'}),

View file

@ -7,16 +7,16 @@
# Licensed according to the terms of GPL Version 3. See LICENSE for details.
"""
test.test_py_d.ts_cfg: CfgFile tests for the MMGen test.py test suite
test.test_py_d.ts_cfgfile: CfgFile tests for the MMGen test.py test suite
"""
import shutil
from ..include.common import *
from .ts_base import *
from mmgen.cfg import *
from mmgen.cfgfile import *
class TestSuiteCfg(TestSuiteBase):
class TestSuiteCfgFile(TestSuiteBase):
'CfgFile API'
networks = ('btc',)
tmpdir_nums = [40]