1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
--- bubbob/images.py
+++ bubbob/images.py
@@ -427,7 +427,6 @@
# check and maybe regenerate the colored image files
file = os.path.join('images', 'buildcolors.py')
g = {'__name__': '__auto__', '__file__': file}
- execfile(file, g)
# replace the entries 'filename_%d.ppm' by a family of entries,
# one for each color
sprmap = {}
--- display/pclient.py
+++ display/pclient.py
@@ -155,8 +155,8 @@
if mode[-1].has_key('cfgfile'):
self.trackcfgfile = mode[-1]['cfgfile']
else:
- self.trackcfgfile = os.path.join(DataChunk.SOURCEDIR,
- 'http2', 'config.txt')
+ self.trackcfgfile = os.path.join(os.environ.get('HOME'),
+ '.bubnbros')
self.udpsock = None
self.udpsock_low = None
self.udpsock2 = None
--- http2/httppages.py
+++ http2/httppages.py
@@ -38,7 +38,7 @@
class PageServer:
- CONFIGFILE = 'config.txt'
+ CONFIGFILE = '.bubnbros'
localservers = None
def __init__(self, Game):
@@ -46,7 +46,7 @@
self.seed = hex(random.randrange(0x1000, 0x10000))
#self.unique_actions = {}
self.localhost = gamesrv.HOSTNAME
- self.filename = os.path.join(LOCALDIR, self.CONFIGFILE)
+ self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE)
data = self.loadoptionfile()
self.globaloptions = Options(data.get('*', {}))
self.localoptions = Options(data.get(self.localhost, {}))
@@ -336,7 +336,6 @@
'buildcolors.py')
if os.path.exists(file):
g = {'__name__': '__auto__', '__file__': file}
- execfile(file, g)
if port:
address = '%s:%s' % (host, port)
|