import os
import gettext

#-----------------------------------------------------------------------------

## @package jsprog.common
#
# Common definitions and utilities
#
# The main purpose of this module is to provide common definitions for things
# that are named differently in Gtk+ 2 and 3.

#-----------------------------------------------------------------------------

from gi.repository import GObject
from gi.repository.GObject import MainLoop

try:
    from ._autoconf import *
except:
    datadir=os.getenv("JSPROG_DATADIR", default = "/data")
    pkgdatadir=os.getenv("JSPROG_PKGDATADIR", default = "/pkgdata")
    localedir=os.getenv("JSPROG_LOCALEDIR", default = "/locale")

#------------------------------------------------------------------------------

gettext.bindtextdomain("jsprog", localedir = localedir)
gettext.textdomain("jsprog")
_ = gettext.gettext

#------------------------------------------------------------------------------
