summaryrefslogtreecommitdiff
path: root/games/pytraffic/patches/patch-aa
blob: 0a493110c51e6d74b709e275c0ce5cd34afa506c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.1.1.1 2005/07/20 19:46:27 drochner Exp $

--- setup.py.orig	2005-07-19 18:29:58.000000000 +0200
+++ setup.py
@@ -48,7 +48,7 @@ except ImportError:
 # Furthermore both their location and content depend on <prefix>.
 # Distutils should really have a 'configure' step.
 if os.name=='posix':
-    prefix='/usr/local'
+    prefix=os.environ['PREFIX']
     for arg_index in xrange(1,len(sys.argv)):
         arg=sys.argv[arg_index]
         if arg=='--prefix':
@@ -84,8 +84,8 @@ if py2exe_present:
 # We now construct the files pytraffic and pytraffic.desktop. We will
 # remove them afterwards.
 if os.name=='posix':
-    main_command_contents=r"""exec python %s/share/%s/Game.py 
-""" % (prefix,version.install_leaf)
+    main_command_contents=r"""exec %s %s/share/%s/Game.py 
+""" % (sys.executable,prefix,version.install_leaf)
 
     main_command_file=open("pytraffic","w")
     main_command_file.write(main_command_contents)