<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 03/06/2010 18:38, Andrew Evans wrote:
<blockquote
cite="mid:AANLkTinsO9hwmsXgJOeV0BpU5Sr5w-JVcFxQ1fRnIwYX@mail.gmail.com"
type="cite">Hello I am trying to import the Zlib module after I have
installed the DLL in to the DLLs folder in IronPython<br>
<br>
I am getting a no module named zlib<br>
</blockquote>
<br>
Hello Andrew,<br>
<br>
I haven't tried this, but I assume you have to add a reference to the
assembly before you can import from it. Try:<br>
<br>
import clr<br>
clr.AddReference('IronPython.Zlib')<br>
<br>
(Substitute the correct name of the dll into the AddReference call.)<br>
<br>
HTH,<br>
<br>
Michael Foord<br>
<br>
<blockquote
cite="mid:AANLkTinsO9hwmsXgJOeV0BpU5Sr5w-JVcFxQ1fRnIwYX@mail.gmail.com"
type="cite"><br>
It probably has something to do with my environment variables, what do
I need to do get them to import. Currently my Environment Variables are
set to<br>
<br>
<br>
IRONPYTHONPATH C:\IronPython\DLLs\;<br>
PATH C:\IronPython\;<br>
<br>
Google isn't being all that helpful<br>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
</pre>
</body>
</html>