1import sys
2
3from nose.core import run_exit
4
5if sys.argv[0].endswith('__main__.py'):
6    sys.argv[0] = '%s -m nose' % sys.executable
7
8run_exit()
9