Exemplo n.º 1
0
#Endgame: Singularity is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.
#A full copy of this license is provided in GPL.txt

#This file sets up initial values from command line and preferences file,
# initialize hardware, load data files and show main screen. Do not execute it
# directly. use ../singularity.py instead.

# Set language first, so help page and all error messages can be translated
import g
g.set_language()
g.load_messages()

# Since we require numpy anyway, we might as well ask pygame to use it.
try:
    import pygame
    pygame.surfarray.use_arraytype("numpy")
except AttributeError:
    pass # Pygame older than 1.8.
except ValueError:
    raise SystemExit("Endgame: Singularity requires NumPy.")
except ImportError:
    raise SystemExit("Endgame: Singularity requires pygame.")

import sys
import ConfigParser
Exemplo n.º 2
0
#Endgame: Singularity is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.
#A full copy of this license is provided in GPL.txt

#This file sets up initial values from command line and preferences file,
# initialize hardware, load data files and show main screen. Do not execute it
# directly. use ../singularity.py instead.

# Set language first, so help page and all error messages can be translated
import g
g.set_language(force=True)

# Since we require numpy anyway, we might as well ask pygame to use it.
try:
    import pygame
    pygame.surfarray.use_arraytype("numpy")
except AttributeError:
    pass # Pygame older than 1.8.
except ValueError:
    raise SystemExit("Endgame: Singularity requires NumPy.")
except ImportError:
    raise SystemExit("Endgame: Singularity requires pygame.")

import sys
import ConfigParser
import os.path
Exemplo n.º 3
0
#Endgame: Singularity is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.
#A full copy of this license is provided in GPL.txt

#This file sets up initial values from command line and preferences file,
# initialize hardware, load data files and show main screen. Do not execute it
# directly. use ../singularity.py instead.

# Set language first, so help page and all error messages can be translated
import g
g.set_language(force=True)

# Since we require numpy anyway, we might as well ask pygame to use it.
try:
    import pygame
    pygame.surfarray.use_arraytype("numpy")
except AttributeError:
    pass  # Pygame older than 1.8.
except ValueError:
    raise SystemExit("Endgame: Singularity requires NumPy.")
except ImportError:
    raise SystemExit("Endgame: Singularity requires pygame.")

import sys
import ConfigParser
import os.path