Difference between revisions of "Talk:Using Python on Linux"

From Apache OpenOffice Wiki
Jump to: navigation, search
(ubuntu 10 - not sure how applicable.)
(formatting)
 
Line 9: Line 9:
 
The instructions on this page for finding OOo Python stuff on Ubuntu totally left me lost.  I was able to find Pythony stuff in basis3.2 instead of openoffice/program:  
 
The instructions on this page for finding OOo Python stuff on Ubuntu totally left me lost.  I was able to find Pythony stuff in basis3.2 instead of openoffice/program:  
  
<blockquote>/usr/lib/openoffice/basis3.2/program/pythonloader.py
+
/usr/lib/openoffice/basis3.2/program/pythonloader.py
/usr/lib/openoffice/basis3.2/program/pythonscript.py
+
/usr/lib/openoffice/basis3.2/program/pythonscript.py
/usr/lib/openoffice/basis3.2/program/pyuno.so
+
/usr/lib/openoffice/basis3.2/program/pyuno.so
/usr/lib/openoffice/basis3.2/program/pythonloader.pyc
+
/usr/lib/openoffice/basis3.2/program/pythonloader.pyc
/usr/lib/openoffice/basis3.2/program/pythonloader.unorc
+
/usr/lib/openoffice/basis3.2/program/pythonloader.unorc
/usr/lib/openoffice/basis3.2/program/pythonloader.uno.so
+
/usr/lib/openoffice/basis3.2/program/pythonloader.uno.so
/usr/lib/openoffice/basis3.2/program/pythonscript.pyc
+
/usr/lib/openoffice/basis3.2/program/pythonscript.pyc
/usr/lib/openoffice/basis3.2/share/Scripts/python
+
/usr/lib/openoffice/basis3.2/share/Scripts/python
/usr/lib/openoffice/basis3.2/share/Scripts/python/pythonSamples
+
/usr/lib/openoffice/basis3.2/share/Scripts/python/pythonSamples
</blockquote>
+
  
 
I'm a relative Ubuntu noob using '10.04 LTS - the Lucid Lynx - released in April 2010 and supported until April 2013.'  I haven't done much customization to my system so I'd have to think this is how OOo installs by default now.  I don't yet feel confident enough to modify this wiki article, but I will put in a placeholder.  Could someone please verify the above is relevant and then add if appropriate?  Thanks, [[User:PhilipR|PhilipR]] 03:06, 21 October 2010 (UTC)
 
I'm a relative Ubuntu noob using '10.04 LTS - the Lucid Lynx - released in April 2010 and supported until April 2013.'  I haven't done much customization to my system so I'd have to think this is how OOo installs by default now.  I don't yet feel confident enough to modify this wiki article, but I will put in a placeholder.  Could someone please verify the above is relevant and then add if appropriate?  Thanks, [[User:PhilipR|PhilipR]] 03:06, 21 October 2010 (UTC)

Latest revision as of 03:07, 21 October 2010

Rather than having to use a wrapper to get the right environment, I find that I can also do the following:

import sys
sys.path.append("/usr/lib/openoffice.orgX.x/program")
import uno


Ubuntu 10, fairly vanilla

The instructions on this page for finding OOo Python stuff on Ubuntu totally left me lost. I was able to find Pythony stuff in basis3.2 instead of openoffice/program:

/usr/lib/openoffice/basis3.2/program/pythonloader.py
/usr/lib/openoffice/basis3.2/program/pythonscript.py
/usr/lib/openoffice/basis3.2/program/pyuno.so
/usr/lib/openoffice/basis3.2/program/pythonloader.pyc
/usr/lib/openoffice/basis3.2/program/pythonloader.unorc
/usr/lib/openoffice/basis3.2/program/pythonloader.uno.so
/usr/lib/openoffice/basis3.2/program/pythonscript.pyc
/usr/lib/openoffice/basis3.2/share/Scripts/python
/usr/lib/openoffice/basis3.2/share/Scripts/python/pythonSamples

I'm a relative Ubuntu noob using '10.04 LTS - the Lucid Lynx - released in April 2010 and supported until April 2013.' I haven't done much customization to my system so I'd have to think this is how OOo installs by default now. I don't yet feel confident enough to modify this wiki article, but I will put in a placeholder. Could someone please verify the above is relevant and then add if appropriate? Thanks, PhilipR 03:06, 21 October 2010 (UTC)

Personal tools