def apath(path=''):
 from gluon.fileutils import up
 opath = up(request.folder)
 while (path[:3] == '../'):
  (opath, path) = (up(opath), path[3:])
 return os.path.join(opath, path).replace('\\', '/')

def apath ( path = '' ) : from gluon . fileutils import up opath = up ( request . folder ) while ( path [ : 3 ] == '../' ) : ( opath , path ) = ( up ( opath ) , path [ 3 : ] ) return os . path . join ( opath , path ) . replace ( '\\' , '/' )
application path .