Most viewed recipes tagged "version"http://code.activestate.com/recipes/tags/version/views/2014-10-06T09:22:53-07:00ActiveState Code RecipesSearching .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>
Offline Version Control (online with dropbox) (Python)
2013-07-07T15:18:51-07:00commentator8http://code.activestate.com/recipes/users/4182761/http://code.activestate.com/recipes/578592-offline-version-control-online-with-dropbox/
<p style="color: grey">
Python
recipe 578592
by <a href="/recipes/users/4182761/">commentator8</a>
(<a href="/recipes/tags/control/">control</a>, <a href="/recipes/tags/version/">version</a>).
</p>
<p>A basic form of version control that when used in combination with dropbox and notepad++ (optional) provides reliable backup with tags of files/folder.</p>
<p>Files mode can be used for individual files, in practice i used it with python files primarily.
Folder mode allows for backup of folders, especially useful for a class split over various files with __init__.py in root of a folder.</p>