<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def localpath(*args):
 """construct an absolute path from a list relative to the root pycapnp directory"""

    plist = [ROOT] + list(args)
    return os.path.abspath(pjoin(*plist))