<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 13px">
<div>IronPython.Modules.dll is probably not being copied for your host application. It should be next to IronPython.dll. If it's not available then we'll just continue to run w/o the modules available.</div>
<div> </div>
<div style="FONT-FAMILY: Times New Roman; COLOR: #000000; FONT-SIZE: 16px">
<div style="DIRECTION: ltr" id="divRpF755590">
<hr tabindex="-1">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> users-bounces@lists.ironpython.com [users-bounces@lists.ironpython.com] on behalf of Mads Weitling [mads.weitling@gmail.com]<br>
<b>Sent:</b> Wednesday, July 15, 2009 9:57 AM<br>
<b>To:</b> users@lists.ironpython.com<br>
<b>Subject:</b> [IronPython] sys.builtin_module_names and embedding<br>
</font><br>
</div>
<div></div>
<div>
<div><br>
</div>
I am trying to run som IronPython code using the 2.6b1 hosting API but cannot seem to import the basic 'builtins' defined in IronPython.Modules.dll from my IronPython host.
<div><br>
</div>
<div>When using ipy.exe, things work fine:
<div><br>
</div>
<div>ipy.exe -v</div>
<div>
<div>>>> import sys</div>
<div>>>> sys.builtin_module_names</div>
<div>('clr', 'future_builtins', 'sys', '__builtin__', 'exceptions', '_weakref', '_struct', '_winreg', '_warnings', '_sre', '_random', '_functools', 'xxsubtype', 'time', 'thread', '_heapq', '_ctypes_test', '_ctypes', 'socket', '_sha512', '_sha256', '_sha', 'select',
're', 'operator', 'nt', '_md5', 'math', 'marshal', '_locale', 'itertools', 'imp', 'gc', 'errno', 'datetime', 'cStringIO', 'cPickle', 'copy_reg', '_collections', '_codecs', 'cmath', 'binascii', 'array')</div>
<div><br>
</div>
<div>Running from an embedded IronPython, I see only a few builtins:</div>
<div><br>
</div>
<div>('clr', 'future_builtins', 'sys', '__builtin__', 'exceptions')</div>
<div><br>
</div>
<div>How can I make the missing builtins available to my embedded interpreter?</div>
<div>
<div><br clear="all">
/Mads </div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>