Hi,

On Sun, 2007-07-01 at 13:07 -0300, Pablo Carneiro Elias wrote:
> Hey, I found out why the patch didnt work.. its because the lib and
> include dir, added to the path by the python lines below:
> 
> +      if vtk_option.baseDir:
> +         cpppath.append(pj(vtk_option.baseDir, 'include',
> vtk_option.vtkVersion)) 
> +         libpath.append(pj(vtk_option.baseDir, 'lib'))
> 
> were added without the '/' before the baseDir. In short, if one
> specifies the VtkBaseDir as being <SOMEDIR/> it works. Otherwise the
> include dir used by scons gets like SOMEDIRinclude/vtk and
> SOMEDIRlib... So, the python code should check by itself if the '/' is
> present or not. Its the same fo add '/' to the code ( eg.
> libpath.append(pj(vtk_option.baseDir, '/lib') ) or to add to
> VtkBaseDir.. Adding the '/' made it work!

this is odd, pj (aka os.path.join) should take care of all the / stuff.

Anyway the 'official' AddOnHacks.apply method works (and will stay the
preferred way). So be aware that the patch won't make it to the
repository.

kind regards,
  gerrit




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to