From 80244b57ea63ebba45ad13e28549e5f6c004ec34 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Mon, 27 Mar 2023 10:48:19 +0000 Subject: [PATCH] module rename: cfg.py -> cfgfile.py --- mmgen/{cfg.py => cfgfile.py} | 2 +- mmgen/opts.py | 2 +- test/misc/cfg.py | 2 +- test/test_py_d/cfg.py | 2 +- test/test_py_d/{ts_cfg.py => ts_cfgfile.py} | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) rename mmgen/{cfg.py => cfgfile.py} (99%) rename test/test_py_d/{ts_cfg.py => ts_cfgfile.py} (98%) diff --git a/mmgen/cfg.py b/mmgen/cfgfile.py similarity index 99% rename from mmgen/cfg.py rename to mmgen/cfgfile.py index c04e4aed..7ca61b9c 100755 --- a/mmgen/cfg.py +++ b/mmgen/cfgfile.py @@ -17,7 +17,7 @@ # along with this program. If not, see . """ -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 diff --git a/mmgen/opts.py b/mmgen/opts.py index 471b2f6a..e912fc0e 100755 --- a/mmgen/opts.py +++ b/mmgen/opts.py @@ -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( diff --git a/test/misc/cfg.py b/test/misc/cfg.py index 25a3a034..f3c2e925 100755 --- a/test/misc/cfg.py +++ b/test/misc/cfg.py @@ -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') diff --git a/test/test_py_d/cfg.py b/test/test_py_d/cfg.py index c0fd5158..b308f83d 100755 --- a/test/test_py_d/cfg.py +++ b/test/test_py_d/cfg.py @@ -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'}), diff --git a/test/test_py_d/ts_cfg.py b/test/test_py_d/ts_cfgfile.py similarity index 98% rename from test/test_py_d/ts_cfg.py rename to test/test_py_d/ts_cfgfile.py index 718bbe80..91186d4a 100755 --- a/test/test_py_d/ts_cfg.py +++ b/test/test_py_d/ts_cfgfile.py @@ -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]