# 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 os
import re
import sys
import moa.args
import moa.job
import moa.logger
from moa.sysConf import sysConf

    if os.path.exists(hf):
        return hf
    else:
        return os.path.join(os.path.expanduser('~'), '.bash_history')

def _createAdhocJob(job, args, template, query=[]):
    """
    One function for all adhoc type new job commands
    """

    wd = job.wd
    if (not args.force and
            os.path.exists(os.path.join(wd, '.moa', 'template'))):

        moa.ui.exitError("Job already exists, use -f to override")

    params = []
    for qdata in query:
        param, xtra_history = qdata[0], qdata[1]

        v = moa.ui.askUser(param,
                           job.conf.get(param),
                           xtra_history)

        params.append((param, v))

    title = _checkTitle(job, args.title)
        
    #make sure the correct hooks are called

# 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/adhoc.py
import os
import re
import sys
import moa.args
import moa.job
import moa.logger
from moa.sysConf import sysConf


    if os.path.exists(hf):
        return hf
    else:
        return os.path.join(os.path.expanduser('~'), '.bash_history')

def _createAdhocJob(job, args, template, query=[]):
    """
    One function for all adhoc type new job commands
    """

    wd = job.wd
    if (not args.force and
            os.path.exists(os.path.join(wd, '.moa', 'template'))):

        moa.ui.exitError("Job already exists, use -f to override")

    params = []
    for qdata in query:
        param, xtra_history = qdata[0], qdata[1]

        v = moa.ui.askUser(param,
                           job.conf.get(param),
                           xtra_history)

        params.append((param, v))

    title = _checkTitle(job, args.title)
        
    #make sure the correct hooks are called

    sysConf.pluginHandler.run("preNew")