unitedstates/inspectors-general — pull request #32 by divergentdave (2014-05-25 01:49:42+00:00)
Title: Windows compatibility - "which" is not available

Just try calling pdftotext and see if it raises an exception

For whatever reason, the msysgit distribution includes pdftotext, so if you run the scraper from your git bash shell, everything works. If you run the scraper from a Windows shell, you just get a warning message, and no conversion is done.

"which" doesn't work even when running from the git bash shell, because msysgit's "which" is actually implemented as a bash script. That didn't work with subprocess.Popen, since Python talks directly to Windows, and Windows doesn't think the "which" file is executable.