def my_py_scanner(node, env, path):
    #print node
    pyfile = PyFileScons( str(node) )

    # Implicit dependany on the config file:

    return pyfile.get_dependancy_files() + ['/auto/homes/mh735/hw/libs/mreorg/mplconfigs/thesis1.conf']
def my_py_emitter( target, source, env ):
    try:
        assert len(source) == 1
        pyfile = PyFileScons( str(source[0]) )
        return pyfile.get_output_files(), source
    except:
        print 'Error scanning file:', str(source[0])
        raise