# Path: skema/omxil12.py
# OMX_CALLBACKTYPE = struct_OMX_CALLBACKTYPE # OMX_Core.h: 290


import os
import threading
from collections import defaultdict
from skema.omxil12 import OMX_CALLBACKTYPE
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.



class SkemaConfig(object):
    def __init__(self):
        home       = os.environ.get('HOME', '/')
        baseconfig = os.environ.get('XDG_CONFIG_HOME',
                                    os.path.join(home, '.config'))
        basedata   = os.environ.get('XDG_DATA_HOME',
                                  os.path.join(home, '.local', 'share'))

        self.configdir  = os.path.join(baseconfig, 'skema')
        self.suitesdir  = os.path.join(basedata, 'skema', 'installed-suites')
        self.tagsdir    = os.path.join(basedata, 'skema', 'installed-tags')
        self.resultsdir = os.path.join(basedata, 'skema', 'results')
        self.fd         = file(os.devnull)
        self.quiet      = True

        self.ilevent     = threading.Event()

# Path: skema/omxil12.py
# OMX_CALLBACKTYPE = struct_OMX_CALLBACKTYPE # OMX_Core.h: 290


# Path: skema/config.py
import os
import threading
from collections import defaultdict
from skema.omxil12 import OMX_CALLBACKTYPE

# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.



class SkemaConfig(object):
    def __init__(self):
        home       = os.environ.get('HOME', '/')
        baseconfig = os.environ.get('XDG_CONFIG_HOME',
                                    os.path.join(home, '.config'))
        basedata   = os.environ.get('XDG_DATA_HOME',
                                  os.path.join(home, '.local', 'share'))

        self.configdir  = os.path.join(baseconfig, 'skema')
        self.suitesdir  = os.path.join(basedata, 'skema', 'installed-suites')
        self.tagsdir    = os.path.join(basedata, 'skema', 'installed-tags')
        self.resultsdir = os.path.join(basedata, 'skema', 'results')
        self.fd         = file(os.devnull)
        self.quiet      = True

        self.ilevent     = threading.Event()

        self.cbacks      = OMX_CALLBACKTYPE()