terom@1: """ terom@1: Functions to load data from various sources terom@1: """ terom@1: terom@1: import imp terom@1: terom@2: def load_py (name, path) : terom@1: """ terom@2: Load a python file from the given filesystem path, returning the module itself. terom@2: terom@2: The "name" of the module must be given, it should be something sane and unique... terom@1: """ terom@1: terom@2: # just load it and return terom@2: return imp.load_source(name, path) terom@1: