def abspath(*relpath, **base):
    path = os.path.join(*relpath)
    gluon = base.get('gluon', False)
    if os.path.isabs(path):
        return path
    if gluon:
        return os.path.join(global_settings.gluon_parent, path)
    return os.path.join(global_settings.applications_parent, path)
convert relative path to absolute path based (by default) on applications_parent
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/fileutils.py/abspath