Browse Source

module rename: cfg.py -> cfgfile.py

The MMGen Project 1 year ago
parent
commit
80244b57ea
5 changed files with 7 additions and 7 deletions
  1. 1 1
      mmgen/cfgfile.py
  2. 1 1
      mmgen/opts.py
  3. 1 1
      test/misc/cfg.py
  4. 1 1
      test/test_py_d/cfg.py
  5. 3 3
      test/test_py_d/ts_cfgfile.py

+ 1 - 1
mmgen/cfg.py → mmgen/cfgfile.py

@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # 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
 # NB: This module is used by override_globals_from_cfg_file(), which is called before

+ 1 - 1
mmgen/opts.py

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

+ 1 - 1
test/misc/cfg.py

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

+ 1 - 1
test/test_py_d/cfg.py

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

+ 3 - 3
test/test_py_d/ts_cfg.py → test/test_py_d/ts_cfgfile.py

@@ -7,16 +7,16 @@
 # Licensed according to the terms of GPL Version 3.  See LICENSE for details.
 # 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
 import shutil
 
 
 from ..include.common import *
 from ..include.common import *
 from .ts_base import *
 from .ts_base import *
-from mmgen.cfg import *
+from mmgen.cfgfile import *
 
 
-class TestSuiteCfg(TestSuiteBase):
+class TestSuiteCfgFile(TestSuiteBase):
 	'CfgFile API'
 	'CfgFile API'
 	networks = ('btc',)
 	networks = ('btc',)
 	tmpdir_nums = [40]
 	tmpdir_nums = [40]