def load_data_file(path):
    """Load a file either from __loader__ or the filesystem."""
    loader = globals().get('__loader__', None)
    if loader:
        return loader.get_data(path)
    with open(path, 'rb') as fi:
        return fi.read()
