Skip to content

Commit

Permalink
Merge pull request #635 from stefanor/executable_module
Browse files Browse the repository at this point in the history
Provide a __main__ entry point
  • Loading branch information
jpellerin committed Feb 27, 2013
2 parents bee38a2 + 53b581d commit 0ac507f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nose/__main__.py
@@ -0,0 +1,8 @@
import sys

from nose.core import run_exit

if sys.argv[0].endswith('__main__.py'):
sys.argv[0] = '%s -m nose' % sys.executable

run_exit()

0 comments on commit 0ac507f

Please sign in to comment.