# 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 sys
import moa.args
import moa.exceptions
import moa.logger
import moa.ui
            import tempfile
                import cProfile
                import pstats
from moa.sysConf import sysConf

## define an initial command line parser - so all plugin commands can
## define themselves.
parser, commandparser = moa.args.getParser()


def run_3(wd, exitOnError=True):
    """
    instantiate the job, prepare and run.

    Running means that either a plugin callback is called or the main
    job is executed. Main job execution consists of three steps:

    - prepare
    - run
    - finish

    prepare, run, finish should probably not be overridden by plugin
    callbacks. It is possible to run prepare & finish separately.

    """

    # finally we have a directory to run in - see if this job want to
    # be executed..

    # make sure we're in the correct wd for the rest of the
    # invocation

    os.chdir(wd)


# 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/cli/main.py
import os
import sys
import moa.args
import moa.exceptions
import moa.logger
import moa.ui
            import tempfile
                import cProfile
                import pstats
from moa.sysConf import sysConf


## define an initial command line parser - so all plugin commands can
## define themselves.
parser, commandparser = moa.args.getParser()


def run_3(wd, exitOnError=True):
    """
    instantiate the job, prepare and run.

    Running means that either a plugin callback is called or the main
    job is executed. Main job execution consists of three steps:

    - prepare
    - run
    - finish

    prepare, run, finish should probably not be overridden by plugin
    callbacks. It is possible to run prepare & finish separately.

    """

    # finally we have a directory to run in - see if this job want to
    # be executed..

    # make sure we're in the correct wd for the rest of the
    # invocation

    os.chdir(wd)


    sysConf.wd = wd