# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


import moa.ui
import moa.utils
import moa.args
import textwrap
from moa.sysConf import sysConf
            key, val = a.split('=', 1)

        if not args.system:
            job.conf[key] = val

        new_pars.append((key, val))
        moa.ui.message('setting "%s" to "%s"' % (key, " ".join(val.split())))

    if args.system:

        sys_pars = dict(new_pars)

        valCheck = {
            'true': True,
            'false': False}

        def _dictify(d):
            for k in list(d.keys()):
                if '.' in k:

                    na, nb = k.split('.', 1)
                    d[na] = _dictify({nb: d[k]})
                    del d[k]
                else:
                    val = d[k]
                    if val.lower() in valCheck:
                        val = valCheck[val.lower()]
                        d[k] = val
            return d


# Path: moa/sysConf.py
# USERCONFIGFILE = os.path.join(os.path.expanduser('~'),
#                               '.config', 'moa', 'config')
# SYSCONFIGFILE = os.path.join('etc', 'moa', 'config')
# def _interpret_var(v):
#     def __init__(self):
#     def getUser(self):
#     def saveUser(self, conf):
#     def getVersion(self):
# class SysConf(Yaco.Yaco):


# Path: moa/plugin/system/configure.py
import moa.ui
import moa.utils
import moa.args
import textwrap
from moa.sysConf import sysConf

            key, val = a.split('=', 1)

        if not args.system:
            job.conf[key] = val

        new_pars.append((key, val))
        moa.ui.message('setting "%s" to "%s"' % (key, " ".join(val.split())))

    if args.system:

        sys_pars = dict(new_pars)

        valCheck = {
            'true': True,
            'false': False}

        def _dictify(d):
            for k in list(d.keys()):
                if '.' in k:

                    na, nb = k.split('.', 1)
                    d[na] = _dictify({nb: d[k]})
                    del d[k]
                else:
                    val = d[k]
                    if val.lower() in valCheck:
                        val = valCheck[val.lower()]
                        d[k] = val
            return d


        userConf = sysConf.getUser()