Returns the absolute path of the 'relpath' relative to the specified code directory.

def coderelpath(coderoot, relpath):
    """Returns the absolute path of the 'relpath' relative to the specified code directory."""
    from os import chdir, getcwd, path
    cd = getcwd()
    chdir(coderoot)
    result = path.abspath(relpath)
    chdir(cd)
    return result