import os

__all__ = ['DATA_FOLDER', 'load_data']


DATA_FOLDER = os.path.dirname(os.path.abspath(__file__))


def load_data(name):
    """
    Loads an Excel form from the data folder with the specified name.

    Parameters
    ----------
    name : str
        The name of the form without file extension.
    """
    from ..lca_writer import LCAWriter # to prevent recursive import

    p = os.path.join(DATA_FOLDER, name + '.xlsx')
    return LCAWriter(p)

[((6, 30, 6, 55), 'os.path.abspath', 'os.path.abspath', ({(6, 46, 6, 54): '__file__'}, {}), '(__file__)', False, 'import os\n'), ((20, 8, 20, 49), 'os.path.join', 'os.path.join', ({(20, 21, 20, 32): 'DATA_FOLDER', (20, 34, 20, 48): "name + '.xlsx'"}, {}), "(DATA_FOLDER, name + '.xlsx')", False, 'import os\n')]