Add support to bpy.library module for relative paths.

This commit is contained in:
Ken Hughes
2008-05-01 05:52:35 +00:00
parent ada5f0403e
commit 3d2758a3bd
2 changed files with 28 additions and 13 deletions

View File

@@ -26,13 +26,16 @@ Example::
me.materials[0] = mat # assign linked material to mesh
"""
def load(filename):
def load(filename,relative=False):
"""
Select an existing .blend file for use as a library. Unlike the
Library module, multiple libraries can be defined at the same time.
@type filename: string
@param filename: The filename of a Blender file. Filenames starting with "//" will be loaded relative to the blend file's location.
@type relative: int
@param relative: Convert relative paths to absolute paths (default).
Setting this parameter to True will leave paths relative.
@rtype: Library
@return: return a L{Library} object.
"""