Comment 4 for bug 551433

su_v (suv-lp) wrote :

output of above script from Inkscape 0.47+devel r9257, after uncommenting the current path in debug.py:

 sys.path.append('/Volumes/blue/src/Inkscape/Inkscape-BZR/Inkscape.app/Contents/Resources/extensions')

Note: the relative path (added in main.cpp?) is incorrectly appended to the user's extensions directory, not to the location of the shared resources in the application package. All other resources (icons, tutorials, etc) are located and found by inkscape. I don't know if inkscape uses $INKSCAPE_SHAREDIR to find the resources - the variable is set in the launcher script (among others).

['/Volumes/blue/src/Inkscape/Inkscape-BZR/Inkscape.app/Contents/Resources/python/site-packages/i386/2.5/lxml']
------------
lxml.etree: (1, 3, 6, 0)
libxml used: (2, 6, 16)
libxml compiled: (2, 6, 30)
libxslt used: (1, 1, 12)
libxslt compiled: (1, 1, 22)
------------
['/Volumes/blue/src/Inkscape/Inkscape-BZR/Inkscape.app/Contents/Resources/python/site-packages/i386/2.5/numpy']
------------
numpy version: 1.0.4
------------
sys.path: ['/Users/suv/.config/inkscape.extensions/LeWitt', '/Users/suv/.config/inkscape.extensions/LeWitt/Contents/Resources/extensions', '/Volumes/blue/src/Inkscape/Inkscape-BZR/Inkscape.app/Contents/Resources/python/site-packages/i386/2.5', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC', '/Volumes/blue/src/Inkscape/Inkscape-BZR/Inkscape.app/Contents/Resources/extensions']
------------