import os
os.putenv('URE_BOOTSTRAP','vnd.sun.star.pathname:/usr/lib/ooo-3.0/program/fundamentalrc')Otherwise both scripts will throw out the following error:
AttributeError: loadComponentFromURL
import os
os.putenv('URE_BOOTSTRAP','vnd.sun.star.pathname:/usr/lib/ooo-3.0/program/fundamentalrc')AttributeError: loadComponentFromURL
2 comments:
Hey, that's the bug I filed! :) The workaround for Windows uses a slightly different format
http://www.oooforum.org/forum/viewtopic.phtml?p=318751#318751
For OOo 3.1, URE_BOOTSTRAP should point to fundamentalbasicrc.
Works great with OOo 3.1 64bits (downloaded on openoffice.org) on Ubuntu 9.04 bits,
import os
os.putenv('URE_BOOTSTRAP','vnd.sun.star.pathname:/usr/PATH_TO_YOUR_OOO_INSTALL/ooo-3.0/program/fundamentalbasicrc')
Post a Comment