annotate docs/__init__.py @ 3172:d1b367fc08bc tests-returncode

Use a return code of 1 when the tests fail.
author Thomas Kluyver <takowl@gmail.com>
date Wed, 09 Jan 2013 10:13:57 +0000
parents 2b939307c49e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1780
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
1 # Make docs a package that brings up the main page in a web brower when
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
2 # executed.
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
3 #
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
4 # python -m pygame.docs
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
5
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
6 if __name__ == '__main__':
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
7 import os
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
8 pkg_dir = os.path.dirname(os.path.abspath(__file__))
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
9 main = os.path.join(pkg_dir, '__main__.py')
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
10 execfile(main)
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
11
2b939307c49e make python -m pygame.docs bring up the docs in a browser. also fix Python 3 issues with executable packages
Lenard Lindstrom <len-l@telus.net>
parents:
diff changeset
12