added command line arguments to select resolution (defaults to 16)

This commit is contained in:
Philip Eisenlohr 2015-05-29 19:50:59 +00:00
parent bb677a26aa
commit 73d97d3d71
1 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,17 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*- # -*- coding: UTF-8 no BOM -*-
import sys
resolutions = [16,32,64]
resolution = resolutions[0]
try:
resolution = int(sys.argv[1])
except:
pass
if resolution not in resolutions:
resolution = resolutions[0]
from subprocess import call from subprocess import call
call('make run16x16x16', shell=True) call('make run%s'%('x'.join([str(resolution)]*3)), shell=True)