import yaml

import env, loader


# __version__ = '0.4.1'


def load(stream):
    data = yaml.load(stream, loader.Loader)
    return env.interpolate(data)


def load_all(stream):
    for data in yaml.load_all(stream, loader.Loader):
        yield env.interpolate(data)

with open('paths.yaml') as f:
    print(load(f))