comparison python/gview.py @ 684:8b2787e98c01

STUB: python/gview.py
author Jeff Hammel <k0scist@gmail.com>
date Sat, 17 May 2014 20:10:47 -0700
parents ce95c61cb435
children 34af6d5ac73c
comparison
equal deleted inserted replaced
683:ce95c61cb435 684:8b2787e98c01
48 '-Tpng', 48 '-Tpng',
49 '-o', output] 49 '-o', output]
50 subprocess.check_call(command) 50 subprocess.check_call(command)
51 assert os.path.exists(output) 51 assert os.path.exists(output)
52 52
53 if options.viewer: 53 try:
54 subprocess.call([options.viewer, output]) 54 if options.viewer:
55 55 subprocess.call([options.viewer, output])
56 if not options.output: 56 finally:
57 os.remove(output) 57 if not options.output:
58 os.remove(output)
58 59
59 60
60 if __name__ == '__main__': 61 if __name__ == '__main__':
61 main() 62 main()
62 63