Created
March 24, 2013 19:04
-
-
Save soravux/5233080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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