I'd have to take some time to fork the code, but why not use something like:
import os def isLibreOffice(binaryPath): return "libre" in os.path.realpath(binaryPath).lower()
print "is libre", isLibreOffice("/usr/bin/soffice")
I have not tested this on Windows, but it should help fix the errors on my system at least ;) Post a comment if you want me to take the time to convert this into a patch on github.
I'd have to take some time to fork the code, but why not use something like:
import os binaryPath) : realpath( binaryPath) .lower( )
def isLibreOffice(
return "libre" in os.path.
print "is libre", isLibreOffice( "/usr/bin/ soffice" )
I have not tested this on Windows, but it should help fix the errors on my system at least ;) Post a comment if you want me to take the time to convert this into a patch on github.