Open Office Embbed Python

4 views
Skip to first unread message

Heiner Wang

unread,
Aug 4, 2008, 12:22:30 AM8/4/08
to RubyPython
Hello,

Is it possible to run python code in the embedded python of Open
Office?
If so this will provide a UNO bridge for Ruby. Currently OLE is the
only way, which will be restricted to Windows platform.

AchatesAVC

unread,
Aug 7, 2008, 12:18:18 PM8/7/08
to RubyPython
I don't really know. The way I'm doing it is to write a Ruby C
extension which wraps the Python C API.

王海亮

unread,
Aug 12, 2008, 10:54:26 PM8/12/08
to rubyp...@googlegroups.com
It means that actually you call the Python functions in the Python DLL from a ruby extension, right?
 
So if I can compile this ruby extension but link it to the Python DLL that Open Office provided, it is possible that this is going to work, right?
 
 
2008/8/8, AchatesAVC <Achat...@gmail.com>:

Z R

unread,
Aug 12, 2008, 11:35:58 PM8/12/08
to rubyp...@googlegroups.com
Ah yes. I don't know if will work at not. I'm not sure if the Open Office Python DLL provides the some API as the standalone python library. It would require some changes to be made to the extconf.rb though. I don't think it would work as a gem install, but you might be able to tweak it to work. The C extension code does include the Python headers though. I'm not sure if open office comes with those. You're welcome to try it out though. Let me know how it goes.
Reply all
Reply to author
Forward
0 new messages