[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#718403: libreoffice: python scripting language not supported after migration from 4.0.4-3 to 4.1.0-3



Hi again,

On Wed, Jul 31, 2013 at 10:00:54AM +0200, Rene Engelhard wrote:
> > If you need more informations, feel free to ask.
> 
> Something printed on the console/somewhere else except that error?
> Do you have step-by-step instructions how to reproduce?

>From -script-provider-python (/usr/lib/libreoffice/program/pythonscript.py):

def getLogTarget():
    ret = sys.stdout
    if not LOG_STDOUT:
        try:
            pathSubst = uno.getComponentContext().ServiceManager.createInstance(
                "com.sun.star.util.PathSubstitution" )
            userInstallation =  pathSubst.getSubstituteVariableValue( "user" )
            if len( userInstallation ) > 0:
                systemPath = uno.fileUrlToSystemPath( userInstallation + "/Scripts/python/log.txt" )
                ret = file( systemPath , "a" )
        except:
            print("Exception during creation of pythonscript logfile: "+ lastException2String() + "\n, delagating log to stdout\n")
    return ret


if not on stdout; does Scripts/python/log.txt say anything (in your user profile)?

And maybe it's a good idea to incrase this.

# Configuration ----------------------------------------------------
LogLevel.use = LogLevel.NONE                # production level
#LogLevel.use = LogLevel.ERROR               # for script developers
#LogLevel.use = LogLevel.DEBUG               # for script framework developers

(also in pythonscript.py)

Regards,
 
Rene


Reply to: