def abspath(fpath):
from os import path, getcwd, chdir<EOL>original = getcwd()<EOL>chdir(reporoot)<EOL>result = path.abspath(path.expanduser(fpath))<EOL>chdir(original)<EOL>return result<EOL>
Returns the absolute path to the specified file/folder *relative to the
    repository root*.

    Args:
        fpath (str): path to a file or folder; doesn't need to exist.