pvl/config/data.py
author Tero Marttila <terom@fixme.fi>
Fri, 11 Sep 2009 13:02:37 +0300
changeset 10 65d91f6a2d2a
parent 7 0f9cae2d7147
permissions -rw-r--r--
distutils
"""
    Functions to load data from various sources
"""

import imp

def load_py (name, path) :
    """
        Load a python file from the given filesystem path, returning the module itself.

        The "name" of the module must be given, it should be something sane and unique...
    """

    # just load it and return
    return imp.load_source(name, path)