author | Tero Marttila <terom@fixme.fi> |
Sun, 12 Jul 2009 00:43:36 +0300 | |
changeset 6 | 57e8168ba8c4 |
parent 2 | e66102ab7048 |
permissions | -rw-r--r-- |
""" 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)