Fixed shebangs, added error checking

This commit is contained in:
Moshe Kaplan
2013-03-06 01:41:02 -05:00
parent c0ba0c9099
commit bd042d9cc3
48 changed files with 310 additions and 129 deletions
+5 -3
View File
@@ -1,4 +1,4 @@
#/usr/bin/env python
#!/usr/bin/env python
'''
MOSSE tracking sample
@@ -182,7 +182,9 @@ if __name__ == '__main__':
import sys, getopt
opts, args = getopt.getopt(sys.argv[1:], '', ['pause'])
opts = dict(opts)
try: video_src = args[0]
except: video_src = '0'
try:
video_src = args[0]
except:
video_src = '0'
App(video_src, paused = '--pause' in opts).run()