Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-16 Thread Michael Foord
Patrick van der Willik wrote: Ok, I'm confused here. I'm very new to Python aswell, so this probably doesn't help very much. I think this is a big part of your issue. IronPython is a faithful implementation of Python and what you are tripping over are the Python scoping rules and the way mod

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-16 Thread Dino Viehland
.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Patrick van der Willik Sent: Tuesday, June 16, 2009 2:14 AM To: Discussion of IronPython Subject: Re: [IronPython] Embedding IronPython and calling python functions from C# Ok, I'm confused here. I'm very new to Pyth

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-16 Thread Patrick van der Willik
Ok, I'm confused here. I'm very new to Python aswell, so this probably doesn't help very much. As oppossed to trying to constanly import a huge set of require variables all the time, I thought it might be a good idea to introduce 1 object into the globals space which will host a variety of the

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Dino Viehland
ers- > boun...@lists.ironpython.com] On Behalf Of Patrick van der Willik > Sent: Monday, June 15, 2009 5:38 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Embedding IronPython and calling python > functions from C# > > The OnConnect is in the autoexec.py yes

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Patrick van der Willik
u want so that you can run the same code against multiple scopes w/ different sets of bound variables based upon the current request. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Patrick van der Willik Sent: Monday

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Michael Foord
ing down the scope/engine. *From:* users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Dody Gunawinata *Sent:* Thursday, June 11, 2009 9:09 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Embedding IronPython and calling python functions fr

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Patrick van der Willik
ltiple scopes w/ different sets of bound variables based upon the current request. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Patrick van der Willik Sent: Monday, June 15, 2009 4:26 PM To: Discussion of IronPython Subject

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Dino Viehland
. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Patrick van der Willik Sent: Monday, June 15, 2009 4:26 PM To: Discussion of IronPython Subject: Re: [IronPython] Embedding IronPython and calling python functions from

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Patrick van der Willik
@lists.ironpython.com] *On Behalf Of *Dody Gunawinata *Sent:* Thursday, June 11, 2009 9:09 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Embedding IronPython and calling python functions from C# You can read all yours file scripts, then using StringBuilder to combine then

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Michael Foord
ilto:users-boun...@lists.ironpython.com] *On Behalf Of *Dody Gunawinata *Sent:* Thursday, June 11, 2009 9:09 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Embedding IronPython and calling python functions from C# You can read all yours file scripts, then using StringBuilder to com

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Patrick van der Willik
n interact with the python modules for as long as necessary before closing down the scope/engine. *From:* users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] *On Behalf Of *Dody Gunawinata *Sent:* Thursday, June 11, 2009 9:09 AM *To:* Discussion of IronPython

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Michael Foord
hursday, June 11, 2009 9:09 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Embedding IronPython and calling python functions from C# You can read all yours file scripts, then using StringBuilder to combine then and call CreateScriptSourceFromString() Then you can call your

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-15 Thread Patrick van der Willik
n...@lists.ironpython.com] *On Behalf Of *Dody Gunawinata *Sent:* Thursday, June 11, 2009 9:09 AM *To:* Discussion of IronPython *Subject:* Re: [IronPython] Embedding IronPython and calling python functions from C# You can read all yours file scripts, then using StringBui

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-11 Thread Lepisto, Stephen P
9:09 AM To: Discussion of IronPython Subject: Re: [IronPython] Embedding IronPython and calling python functions from C# You can read all yours file scripts, then using StringBuilder to combine then and call CreateScriptSourceFromString() Then you can call your functions within the combin

Re: [IronPython] Embedding IronPython and calling python functions from C#

2009-06-11 Thread Dody Gunawinata
You can read all yours file scripts, then using StringBuilder to combine then and call CreateScriptSourceFromString()Then you can call your functions within the combined scripts normally. Pretty much you are creating a giant source code on the fly. On Thu, Jun 11, 2009 at 5:32 PM, Patrick van der

[IronPython] Embedding IronPython and calling python functions from C#

2009-06-11 Thread Patrick van der Willik
I'm currently attempting to embed the IronPython 2 runtimes into an existing application written in C#. However, I find the amount of documentation lacking on what I'm trying to do. I currently have a proof-of-concept version which uses Lua and LuaInterface, but the people who have to write the