root/trunk/pyspacewar

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"""
3A game inspired by Spacewar.
4
5Copyright (c) 2005-2006 Marius Gedminas and Ignas Mikalajunas.
6
7This program is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
21$Id$
22"""
23
24import os
25import sys
26
27# Set up python path if running from a source tree.
28pkgdir = os.path.join(os.path.dirname(__file__), 'src')
29if os.path.isdir(pkgdir):
30    sys.path.insert(0, pkgdir)
31
32from pyspacewar.main import main
33main()
Note: See TracBrowser for help on using the browser.