October 01, 2012

Relative path and Absolute Path

I've needed these a few times lately, bpy provides convenience functions to convert relative path to absolute path and absolute path to relative path
abspath = bpy.path.abspath(..takes relative path..)
relpath = bpy.path.relpath(..takes absolute path..)