Re: [IronPython] Preloading An Engine Instance With References

2009-08-09 Thread Tomas Matousek
You can load assemblies to the runtime via ScriptRuntime.LoadAssembly.

Tomas

-Original Message-
From: users-boun...@lists.ironpython.com 
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Jesse Wiles
Sent: Sunday, August 09, 2009 10:17 PM
To: users@lists.ironpython.com
Subject: [IronPython] Preloading An Engine Instance With References

Hi,

I would like to preload an engine instance with references to .NET namespaces, 
such that using clr.AddReference in a script is unnecessary.  To be simple, 
I've created an engine instance with all the scope variables that I want, but 
within a script executed by the instance, I am finding that 
clr.AddReference('System') is required to import System.  Can I handle the 
adding of the reference in the construction of the engine instance and if so, 
how?

Thanks,
Jesse Wiles
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


[IronPython] Preloading An Engine Instance With References

2009-08-09 Thread Jesse Wiles
Hi,

I would like to preload an engine instance with references to .NET
namespaces, such that using clr.AddReference in a script is
unnecessary.  To be simple, I've created an engine instance with all
the scope variables that I want, but within a script executed by the
instance, I am finding that clr.AddReference('System') is required to
import System.  Can I handle the adding of the reference in the
construction of the engine instance and if so, how?

Thanks,
Jesse Wiles
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] C# - IronPython Integration

2009-08-09 Thread Curt Hagenlocher
There probably isn't one. But these are just helpers for functionality
that's in the DLR hosting spec. The source ought to be pretty
self-explanatory.

On Sun, Aug 9, 2009 at 10:28 AM, Boris Aronshtam <
boris_aronsh...@vdptech.com> wrote:

>  Thanks a lot for your reply. I do see DLR description
> (Microsoft.Scripting namespace), but I fail to see IronPython.Hosting
> namespace. Do you know where can I find the spec on it?
>
>
>
> Thanks,
>
> Boris
>
>
>
> *From:* Dody Gunawinata [mailto:empirebuil...@gmail.com]
> *Sent:* Sunday, August 09, 2009 12:37 AM
> *To:* Discussion of IronPython
> *Subject:* Re: [IronPython] C# - IronPython Integration
>
>
>
> http://dlr.codeplex.com/Wiki/View.aspx?title=Docs%20and%20specs
>
>
>
> Download the dlr-spec-hosting document.
>
> On Sat, Aug 8, 2009 at 8:10 AM,  wrote:
>
> I am new to IronPython. I am trying to add IronPython scripting support to
> my C# program. I have a number of questions.
>
> Namespaces
> --
> Looking at C# examples on WWW, I can see:
>
> using IronPython.Hosting;
> using Microsoft.Scripting;
> using Microsoft.Scripting.Hosting;
>
> Where can I get documentation on these namespaces?
>
>
>
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
>
> --
> nomadlife.org
>
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] C# - IronPython Integration

2009-08-09 Thread Boris Aronshtam
Thanks a lot for your reply. I do see DLR description (Microsoft.Scripting
namespace), but I fail to see IronPython.Hosting namespace. Do you know
where can I find the spec on it?

 

Thanks,

Boris

 

From: Dody Gunawinata [mailto:empirebuil...@gmail.com] 
Sent: Sunday, August 09, 2009 12:37 AM
To: Discussion of IronPython
Subject: Re: [IronPython] C# - IronPython Integration

 

http://dlr.codeplex.com/Wiki/View.aspx?title=Docs%20and%20specs 

 

Download the dlr-spec-hosting document.

On Sat, Aug 8, 2009 at 8:10 AM,  wrote:

I am new to IronPython. I am trying to add IronPython scripting support to
my C# program. I have a number of questions.

Namespaces
--
Looking at C# examples on WWW, I can see:

using IronPython.Hosting;
using Microsoft.Scripting;
using Microsoft.Scripting.Hosting;

Where can I get documentation on these namespaces?



___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com




-- 
nomadlife.org

___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


Re: [IronPython] C# - IronPython Integration

2009-08-09 Thread Dody Gunawinata
http://dlr.codeplex.com/Wiki/View.aspx?title=Docs%20and%20specs
Download the dlr-spec-hosting document.

On Sat, Aug 8, 2009 at 8:10 AM,  wrote:

> I am new to IronPython. I am trying to add IronPython scripting support to
> my C# program. I have a number of questions.
>
> Namespaces
> --
> Looking at C# examples on WWW, I can see:
>
> using IronPython.Hosting;
> using Microsoft.Scripting;
> using Microsoft.Scripting.Hosting;
>
> Where can I get documentation on these namespaces?
>
>
>
> ___
> Users mailing list
> Users@lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



-- 
nomadlife.org
___
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com