freebsd-ports/games/jools/files/patch-jools::__init__.py
Edwin Groothuis 205f0f8997 [patch] fix pygame detection in games/jools
I can't get the new port "jools" to detect my installation
	of pygame, no doubt due to some path confusion.  Don't know
	if it's just this machine, but I will note that I basically
	have a default Python install from ports, with a few
	additional modules, but no PYTHONPATH or anything about
	python in make.conf.  (Perhaps the original porter has
	site-packages/pygame in his default path?)

PR:		ports/53020
Submitted by:	Mark Linimon <linimon@lonesome.com>
2003-08-31 03:06:27 +00:00

18 lines
380 B
Python

--- jools/__init__.py.orig Sat Aug 30 20:04:03 2003
+++ jools/__init__.py Sat Aug 30 20:04:32 2003
@@ -24,6 +24,7 @@
# Primary game control loop.
#
+import os, random, sys
try:
import pygame
@@ -31,7 +32,6 @@
sys.exit("Jools requires Pygame, which does not appear to be installed.")
-import os, random, sys
from pygame.locals import *
from globals import *