module rename: cfg.py -> cfgfile.py
This commit is contained in:
parent
e00e4cd149
commit
80244b57ea
5 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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'}),
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
Loading…
Add table
Add a link
Reference in a new issue