# Path: liam2/config.py

# 
# Path: liam2/compat.py
# PY2 = sys.version_info[0] == 2
# 
# Path: liam2/utils.py
# class ExceptionOnGetAttr(object):
#     """
#     ExceptionOnGetAttr can be used when an optional part is missing
#     so that an exception is only raised if the object is actually used.
#     """
#     def __init__(self, exception):
#         self.exception = exception
# 
#     def __getattr__(self, key):
#         raise self.exception


import locale
import warnings
import sys
from liam2 import config
from liam2.compat import PY2
from liam2.utils import ExceptionOnGetAttr
    from qtpy import QtWidgets
    from vitables.vtapp import VTApp
        from vitables.vtapp import VTApp
    from vitables.preferences import vtconfig
# encoding: utf-8
from __future__ import absolute_import, division, print_function

#       Copyright (C) 2005-2007 Carabos Coop. V. All rights reserved
#       Copyright (C) 2008-2013 Vicent Mas. All rights reserved
#
#       This program is free software: you can redistribute it and/or modify
#       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/>.
#
#       Author:  Vicent Mas - vmas@vitables.org



try:
except ImportError as e:
    msg = "the 'view' command is not available because 'vitables' does not seem to be installed correctly (%s)." % e
    print("Warning:", msg)
    if not config.debug and not PY2:
        e = ImportError(msg).with_traceback(sys.exc_info()[2])
    VTApp = ExceptionOnGetAttr(e)

# Path: liam2/config.py

# 
# Path: liam2/compat.py
# PY2 = sys.version_info[0] == 2
# 
# Path: liam2/utils.py
# class ExceptionOnGetAttr(object):
#     """
#     ExceptionOnGetAttr can be used when an optional part is missing
#     so that an exception is only raised if the object is actually used.
#     """
#     def __init__(self, exception):
#         self.exception = exception
# 
#     def __getattr__(self, key):
#         raise self.exception


# Path: liam2/view.py
import locale
import warnings
import sys
from liam2 import config
from liam2.compat import PY2
from liam2.utils import ExceptionOnGetAttr
    from qtpy import QtWidgets
    from vitables.vtapp import VTApp
        from vitables.vtapp import VTApp
    from vitables.preferences import vtconfig

# encoding: utf-8
from __future__ import absolute_import, division, print_function

#       Copyright (C) 2005-2007 Carabos Coop. V. All rights reserved
#       Copyright (C) 2008-2013 Vicent Mas. All rights reserved
#
#       This program is free software: you can redistribute it and/or modify
#       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/>.
#
#       Author:  Vicent Mas - vmas@vitables.org



try:
except ImportError as e:
    msg = "the 'view' command is not available because 'vitables' does not seem to be installed correctly (%s)." % e
    print("Warning:", msg)
    if not config.debug and not PY2:
        e = ImportError(msg).with_traceback(sys.exc_info()[2])
    VTApp = ExceptionOnGetAttr(e)

    QtWidgets = ExceptionOnGetAttr(e)