# 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 fcntl
import os
import subprocess
import sys
import moa.logger
import moa.ui
from moa.sysConf import sysConf
#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
moa.actor
---------

'Simple' wrapper around subprocess to execute code
"""


l = moa.logger.getLogger(__name__)

def async(f):
    """
    decorator designating an actor to be asynchronous
    """
    f.category = 'async'
    return f

def sync(f):
    """
    decorator designating an actor to be synchronous
    """
    f.category = 'sync'
    return f

def getRunner():

# 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/actor.py
import fcntl
import os
import subprocess
import sys
import moa.logger
import moa.ui
from moa.sysConf import sysConf

#
# This file is part of Moa - http://github.com/mfiers/Moa
#
# Licensed under the GPL license (see 'COPYING')
#
"""
moa.actor
---------

'Simple' wrapper around subprocess to execute code
"""


l = moa.logger.getLogger(__name__)

def async(f):
    """
    decorator designating an actor to be asynchronous
    """
    f.category = 'async'
    return f

def sync(f):
    """
    decorator designating an actor to be synchronous
    """
    f.category = 'sync'
    return f

def getRunner():

    actorId = getattr(sysConf.args, 'actorId', 'default')