|
Revision 202, 1.0 KB
(checked in by mg, 6 years ago)
|
|
Move the main loop and command line parsing into a new module in the pyspacewar
package, leaving only a small shell of the pyspacewar script.
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | #!/usr/bin/env python |
|---|
| 2 | """ |
|---|
| 3 | A game inspired by Spacewar. |
|---|
| 4 | |
|---|
| 5 | Copyright (c) 2005-2006 Marius Gedminas and Ignas Mikalajunas. |
|---|
| 6 | |
|---|
| 7 | This program is free software; you can redistribute it and/or modify |
|---|
| 8 | it under the terms of the GNU General Public License as published by |
|---|
| 9 | the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | (at your option) any later version. |
|---|
| 11 | |
|---|
| 12 | This program is distributed in the hope that it will be useful, |
|---|
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 15 | GNU General Public License for more details. |
|---|
| 16 | |
|---|
| 17 | You should have received a copy of the GNU General Public License |
|---|
| 18 | along with this program; if not, write to the Free Software |
|---|
| 19 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 20 | |
|---|
| 21 | $Id$ |
|---|
| 22 | """ |
|---|
| 23 | |
|---|
| 24 | import os |
|---|
| 25 | import sys |
|---|
| 26 | |
|---|
| 27 | # Set up python path if running from a source tree. |
|---|
| 28 | pkgdir = os.path.join(os.path.dirname(__file__), 'src') |
|---|
| 29 | if os.path.isdir(pkgdir): |
|---|
| 30 | sys.path.insert(0, pkgdir) |
|---|
| 31 | |
|---|
| 32 | from pyspacewar.main import main |
|---|
| 33 | main() |
|---|