Interpolation, getting path of dir

cubic interpolation and path with path.dirname