globalvars.py -> cfg.py

This commit is contained in:
The MMGen Project 2023-04-04 16:04:10 +00:00
commit 93bcc92534
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
59 changed files with 59 additions and 59 deletions

View file

@ -20,7 +20,7 @@
addrdata: MMGen AddrData and related classes
"""
from .globalvars import gc
from .cfg import gc
from .util import fmt,die
from .base_obj import AsyncInit
from .obj import MMGenObject,MMGenDict,get_obj

View file

@ -20,7 +20,7 @@
addrfile: Address and password file classes for the MMGen suite
"""
from .globalvars import gc
from .cfg import gc
from .util import msg,die,capfirst
from .protocol import init_proto
from .obj import MMGenObject,TwComment,WalletPassword,MMGenPWIDString

View file

@ -37,7 +37,7 @@ altcoin.py - Coin constants for Bitcoin-derived altcoins
import sys
from .globalvars import gc
from .cfg import gc,Config
from .util import msg
def test_equal(desc,a,b,*cdata):

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
globalvars: Constants and configuration options for the MMGen suite
cfg: Configuration classes for the MMGen suite
"""
import sys,os

View file

@ -188,7 +188,7 @@ class CfgFileSampleSys(cfg_file_sample):
else:
# self.fn is used for error msgs only, so file need not exist on filesystem
self.fn = os.path.join(os.path.dirname(__file__),'data',self.fn_base)
from .globalvars import gc
from .cfg import gc
self.data = gc.get_mmgen_data_file(self.fn_base).splitlines()
def make_metadata(self):

View file

@ -47,7 +47,7 @@ def nocolor(s):
def set_vt100():
'hack to put term into VT100 mode under MSWin'
from .globalvars import gc
from .cfg import gc
if gc.platform == 'win':
from subprocess import run
run([],shell=True)

View file

@ -21,6 +21,6 @@ common: Common imports for all MMGen scripts
"""
import sys,os
from .globalvars import *
from .cfg import *
import mmgen.opts as opts
from .util import *

View file

@ -23,7 +23,7 @@ crypto: Random number, password hashing and symmetric encryption routines for th
import os
from collections import namedtuple
from .globalvars import gc
from .cfg import gc
from .util import (
msg,
msg_r,

View file

@ -24,7 +24,7 @@ import os,time,importlib
from subprocess import run,PIPE,CompletedProcess
from collections import namedtuple
from .globalvars import gc
from .cfg import gc
from .color import set_vt100
from .util import msg,Msg_r,ymsg,die,remove_dups,oneshot_warning
from .flags import *

View file

@ -43,7 +43,7 @@ class File:
import stat
if stat.S_ISBLK(st.st_mode):
mode = (os.O_RDONLY,os.O_RDWR)[bool(write)]
from .globalvars import gc
from .cfg import gc
if gc.platform == 'win':
mode |= os.O_BINARY
try:

View file

@ -22,7 +22,7 @@ fileutil: Routines that read, write, execute or stat files
import sys,os
from .globalvars import gc
from .cfg import gc
from .color import set_vt100
from .util import (
msg,

View file

@ -20,7 +20,7 @@
help: help notes for MMGen suite commands
"""
from .globalvars import gc
from .cfg import gc
def help_notes_func(proto,cfg,k):

View file

@ -29,7 +29,7 @@ def launch(mod,package='mmgen'):
mod = 'addrgen'
import sys,os
from .globalvars import gc
from .cfg import gc
if gc.platform == 'linux' and sys.stdin.isatty():
import termios,atexit

View file

@ -22,7 +22,7 @@ mmgen-addrgen: Generate a series or range of addresses from an MMGen
"""
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .addr import MMGenAddrType
from .addrfile import AddrFile
from .wallet import Wallet

View file

@ -23,7 +23,7 @@ mmgen-addrimport: Import addresses into a MMGen coin daemon tracking wallet
from collections import namedtuple
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .util import msg,suf,die,fmt,async_run
from .addrlist import AddrList,KeyAddrList
from .tw.shared import TwLabel

View file

@ -22,7 +22,7 @@ mmgen-passgen: Generate a series or range of passwords from an MMGen
"""
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .addrlist import AddrIdxList
from .passwdlist import PasswordList
from .wallet import Wallet

View file

@ -22,7 +22,7 @@ mmgen-regtest: Coin daemon regression test mode setup and operations for the MMG
"""
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .util import die,async_run
opts_data = {

View file

@ -22,7 +22,7 @@ mmgen-seedjoin: Regenerate an MMGen deterministic wallet from seed shares
"""
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .util import msg,msg_r,die
from .color import yellow
from .obj import MMGenWalletLabel

View file

@ -23,7 +23,7 @@ mmgen-tool: Perform various MMGen- and cryptocoin-related operations.
import sys,os,importlib
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .util import msg,Msg,die,capfirst,suf,async_run
opts_data = {

View file

@ -22,7 +22,7 @@ mmgen-txbump: Increase the fee on a replaceable (replace-by-fee) MMGen
"""
import mmgen.opts as opts
from .globalvars import gc
from .cfg import gc,Config
from .util import msg,msg_r,die,async_run
from .color import green
from .wallet import Wallet

Some files were not shown because too many files have changed in this diff Show more