[IronPython] Adding imports?

Slide slide.o.mix at gmail.com
Wed Nov 4 18:11:48 CET 2009


That is perfect! Thanks!

On Wed, Nov 4, 2009 at 10:08 AM, Dino Viehland <dinov at microsoft.com> wrote:

>  You can do:
>
>
>
> scope.SetVariable(“name”, engine.ImportModule(“module_name”));
>
>
>
> Where ImportModule is an extension method defined in
> IronPython.Hosting.Python.
>
>
>
> *From:* users-bounces at lists.ironpython.com [mailto:
> users-bounces at lists.ironpython.com] *On Behalf Of *Slide
> *Sent:* Wednesday, November 04, 2009 9:05 AM
> *To:* Discussion of IronPython
> *Subject:* [IronPython] Adding imports?
>
>
>
> Is it possible to add imports to a script without just adding text to the
> source code before compilation?
>
> Maybe something on the script scope or something?
>
> Thanks
>
> --
> slide-o-blog
> http://slide-o-blog.blogspot.com/
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
slide-o-blog
http://slide-o-blog.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20091104/22787c86/attachment.html>


More information about the Ironpython-users mailing list