You are here

[Bug] Win64 OpenOffice Incorrect Python path

4 posts / 0 new
Last post
LibreOfficiant
Offline
Last seen: 2 months 2 weeks ago
Joined: 2018-03-03 06:37
[Bug] Win64 OpenOffice Incorrect Python path

PortableOpenOffice installed as:
D:\PortableApps\aOO-4.1.5\App\openoffice\program
PortableJava installed too where recommended.

When running D:\PortableApps\aOO-4.1.5\App\openoffice\program\python.exe interpreter, OpenOffice Python modules can't be imported e.g.
>>> import officehelper # is failing

Reason: " D:\PortableApps\aOO-4.1.5\App\openoffice\program " should be part of sys.path by default :
>>> import sys
>>> sys.path

John T. Haller
John T. Haller's picture
Online
Last seen: 31 min 27 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Launcher INI

Open up the launcher INI called OpenOfficePortable.ini within the OpenOfficePortable\App\AppInfo\Launcher directory. Within their, after the [Activate] section and the two following lines, add this:

[Environment]
PATH=%PAL:AppDir%\openoffice\program;%PATH%

Then close and restart OpenOffice Portagble. Did that fix it?

Sometimes, the impossible can become possible, if you're awesome!

LibreOfficiant
Offline
Last seen: 2 months 2 weeks ago
Joined: 2018-03-03 06:37
Hi John

Fixed ! You've spotted it ! Wink
Thanks

PS: Please note PortableLibreOffice packages do not require to update the .ini file as you suggest. As a consequence your suggestion should most probably be part of PortableOpenOffice future packs.

Cordially

John T. Haller
John T. Haller's picture
Online
Last seen: 31 min 27 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Adding

I'm adding it to the next release. I just wanted to make sure it fully solved your issue first.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments