All the scripts used in the Du Bois digitization project are available in:
r:/credo/utilities
All the scripts are in Python and available as standalone Windows executables that can run on any Windows system with minimal steps to install or as source python files, which require the Python interpreter and several libraries. r:/credo/utilities contains a folder for each script. In that folder is a README.txt that describes the usage of the script, though each script is also described on the Wiki. There is also a scriptname.exe file that is the standalone executable of the script and a src folder for all the original Python source.
Currently, there are seven utilities available:
Information about installing and running both the executables and the source is below…
All the executables live in r:/credo/metadata/utilities/scriptname.
To install…
scriptname.exe file to your c:\Temp directory. Make sure you copy only and keep the original version in the r:/credo/metadata/utilities directory. To use the scripts do the following…
e.g.
Y:\scans\dubois_scanning\staging\box112> mods -h .
note: The period at the end is the argument that tells it to apply the script to that directory.
To run the source python files, it's necessary to install the Python interpreter. I prefer Active Python for Windows.
The following libraries will also need to be installed:
>pypm install lxml assuming you have Active Python installed.Other smaller libraries are included with the source files of the scripts that depend on them.
To run python scripts, first enter the command line and navigate into the source directory, type python and the script name:
>python /path/to/mods.py -h
If you've made changes to the original source and feel compelled to compile new executables, I use the py2exe library. The setup.py files used to create the executables are in the src folder for each script. Install py2exe and run python setup.py py2exe and away you go.