You are here

[Fixed] OpenOffice Incorrect Python path

5 posts / 0 new
Last post
LibreOfficiant
Offline
Last seen: 6 years 1 month ago
Joined: 2018-03-03 06:37
[Fixed] 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: 8 min 3 sec ago
AdminDeveloperModeratorTranslator
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: 6 years 1 month 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: 8 min 3 sec ago
AdminDeveloperModeratorTranslator
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!

John T. Haller
John T. Haller's picture
Online
Last seen: 8 min 3 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in OpenOffice Portable 4.1.6

The above fix has been applied in OpenOffice Portable 4.1.6

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

Log in or register to post comments