Python Scripting Failure after LibO 3.4->3.5 Upgrade (SuSE 12.1 x64)

Hi !

After upgrade from LibO 3.4 to 3.5 (on SuSE 12.1 x64) all my Python macros have stopped working with very long error message (below).

All my Python scripts located in the same location as before:
~user/.libreoffice/3-suse/user/Scripts/python/

At a glance, looks like LibO python module can’t properly locate scripts anymore for whatever reason (maybe internal API changes I’m not aware of).

Anyone can suggest me what might go wrong?

Thanks in advance.


Error Messagee


BASIC runtime error.
An exception occurred.
Type: com.sun.star.script.provider.ScriptFrameworkErrorExceptionMessage: <class ‘uno_component.com.sun.starucb.InteractiveAugmentedIOException’>: an error occured during file opening

/usr/lib64/libreoffice/share/extensions/script-provider-for-python/pythonscript.py:376 in function getModuleByURL() [lastRead = self.sfa.getDateTimeModified(url)]

/usr/lib64/libreoffice/share/extensions/script-provider-for-python/pythonscript.py:900 in function getScript() [mod = self.provCtx.getModuleByUrl(fileUrl)]


I found solution for this problem.

LibreOffice development team have changed location of directory which stores setting files, extensions, macros, etc.
LibreOffice 3.4.x
/$HOME/.libreoffice/3-suse/user/Scripts/
LibreOffice 3.5.x
/$HOME/.config/libreoffice/3-suse/user/Scripts/

After moving python scripts to proper location everything went fine. My only major complain is that after first launch of LibreOffice 3.5.x I should be given some alert, or even better, a confirmation dialog asking to copy all my custom stuff to the new location.

Also in my blog:
http://www.vacuum-tube.eu/wp/?p=399