[Bf-python] Library.Open() - relative paths

Martin Poirier theeth at yahoo.com
Wed Oct 11 16:59:31 CEST 2006



--- Campbell Barton <cbarton at metavr.com> wrote:

> Hi,
> Malefico needs to get python to open up relative
> blend's
> say Library.Open('//foo.blend')
> 
> Currently this isnt supported because Library.c's 
> M_Library_Open func 
> calls  readblenentry.c's  BLO_blendhandle_from_file
> that calls
> readfile.c's blo_openblenderfile
> 
> and
> blo_openblenderfile dosnt support relative paths.
> 
> Im a bit buisy right now to fix this so Id
> appreciate it if one of the 
> other  c/python'ers  could solve this one.
> - Cam

Tell him to use the os.path module to "unrelativize"
the paths.

Martin

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Bf-python mailing list