Files
mongo/buildscripts/idl/tests/context.py
2017-05-02 09:16:56 -04:00

29 lines
1.2 KiB
Python

# Copyright (C) 2017 MongoDB Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License, version 3,
# as published by the Free Software Foundation.
#
# 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 Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""A support module to load idl modules for testing."""
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
import idl.ast # pylint: disable=wrong-import-position
import idl.binder # pylint: disable=wrong-import-position
import idl.compiler # pylint: disable=wrong-import-position
import idl.errors # pylint: disable=wrong-import-position
import idl.generator # pylint: disable=wrong-import-position
import idl.parser # pylint: disable=wrong-import-position
import idl.syntax # pylint: disable=wrong-import-position