Skip to content

Instantly share code, notes, and snippets.

@soravux
Created March 24, 2013 19:04
Show Gist options
  • Save soravux/5233080 to your computer and use it in GitHub Desktop.
Save soravux/5233080 to your computer and use it in GitHub Desktop.
from scoop import futures
import subprocess
import sys
def runApplication(number):
command = "opendcp_j2k -i in/{num:06d}.tiff -o out/{num:06d}.j2c"
return subprocess.call(command.format(num=number), shell=True)
if __name__ == "__main__":
returnValue = list(futures.map(runApplication, range(1, 172801)))
sys.exit(any(returnValue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment