Python embedded into C#, how?
Syver Enstad
syver-en+usenet at online.no
Sat Nov 9 10:20:31 EST 2002
"Brant Harris" <bharris at students.depaul.edu> writes:
> I'm creating a C# application and I thought that it would be quite
> cool if
>
> it could run py scripts and have an interface to the python
> interpreter so
>
> that people could run python commands to drive various parts of the
> program.
>
>
> I don't really know the best way to do this. If I could drive python
> through C++, then I could throw that into C#. I have been trying to
> wrestle
>
> with making a COM object, but it seems like a major headache, and I
> can't
>
> seem to actually use the COM object once it's used.
>
> Any help would be appreciated, thank you.
As far as I can remember the Python interpreter is exposed as a COM
object when you install win32all. I think its ProgId is
Python.Interpreter. You can look all this up in Python programming on
win32 O'Reilly, Robinson and Hammond, or you could use oleview.
--
Vennlig hilsen
Syver Enstad
More information about the Python-list
mailing list