Comment 1 for bug 685625

Revision history for this message
Philip Muškovac (yofel) wrote :

Looked at this a bit after the IRC discussion. It seems like the python C api on ubuntu sets sys.path[0] not to an empty string but to "/usr/lib/python2.6" which is sys.path[1] usually and scribus overwrites sys.path[0] with it's own include path when the scriptengine is initialized.
Could be solved by scribus using "sys.path.insert(0, \"%1\")\n" instead of "sys.path[0] = \"%1\"\n" in scribus/plugins/scriptplugin/scriptercore.cpp.
I don't know why sys.path for the C API would look different in ubuntu than elsewhere though.