Popular recipes tagged "dll"http://code.activestate.com/recipes/tags/dll/popular/2014-10-06T09:22:53-07:00ActiveState Code RecipesPatch extension binaries compiled for previous (different) Python version (Python)
2010-03-12T15:50:04-08:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/576873-patch-extension-binaries-compiled-for-previous-dif/
<p style="color: grey">
Python
recipe 576873
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/binaries/">binaries</a>, <a href="/recipes/tags/dll/">dll</a>, <a href="/recipes/tags/patch/">patch</a>, <a href="/recipes/tags/precompiled/">precompiled</a>, <a href="/recipes/tags/pyd/">pyd</a>, <a href="/recipes/tags/windows/">windows</a>).
Revision 4.
</p>
<p>It is helpful to download and install precompiled binaries of Python modules especially for Windows. Second way is longer: get module sources, build the C compiler environment, compile binaries, beware of compiler warnings, install module.</p>
<p>Often precompiled binaries can be patched to meet used Python version. </p>
<p>See 'discussions' below for details.</p>
Searching .dll and .exe files in PATH (Python)
2014-10-06T09:22:53-07:00Michal Niklashttp://code.activestate.com/recipes/users/186902/http://code.activestate.com/recipes/576522-searching-dll-and-exe-files-in-path/
<p style="color: grey">
Python
recipe 576522
by <a href="/recipes/users/186902/">Michal Niklas</a>
(<a href="/recipes/tags/dll/">dll</a>, <a href="/recipes/tags/exe/">exe</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/version/">version</a>, <a href="/recipes/tags/windows/">windows</a>).
Revision 7.
</p>
<p>Returns the pathnames of the file (.exe or .dll)
which would be loaded/executed in the current environment.
It uses some dirs from configuration (SystemDir, WindowsDir)
and dirs from PATH.</p>
<p>To obtain version info it uses code from:
<a href="http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/file/tip/win32/Demos/getfilever.py" rel="nofollow">http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/file/tip/win32/Demos/getfilever.py</a></p>
<p>Example of usage:</p>
<pre class="prettyprint"><code> c:\tools\pyscripts\scripts>which_dll.py libpq.dll
2008-06-09 02:58:26 167936 [b] c:\postgresql\8.3\bin\libpq.dll ver:8.3.3.8160
2008-03-17 01:47:50 167936 [b] c:\tools\libpq.dll ver:8.3.1.8075
2008-03-17 01:47:50 167936 [b] g:\public\libpq.dll ver:8.3.1.8075
trying to load "libpq.dll" ...
c:\postgresql\8.3\bin\libpq.dll loaded
</code></pre>