added command line arguments to select resolution (defaults to 16)
This commit is contained in:
parent
bb677a26aa
commit
73d97d3d71
|
@ -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)
|
Loading…
Reference in New Issue