|
Lines 38-44
Link Here
|
| 38 |
|
38 |
|
| 39 |
|
39 |
|
| 40 |
class PageServer: |
40 |
class PageServer: |
| 41 |
CONFIGFILE = 'config.txt' |
41 |
CONFIGFILE = '.bubnbros' |
| 42 |
localservers = None |
42 |
localservers = None |
| 43 |
|
43 |
|
| 44 |
def __init__(self, Game): |
44 |
def __init__(self, Game): |
|
Lines 46-52
Link Here
|
| 46 |
self.seed = hex(random.randrange(0x1000, 0x10000)) |
46 |
self.seed = hex(random.randrange(0x1000, 0x10000)) |
| 47 |
#self.unique_actions = {} |
47 |
#self.unique_actions = {} |
| 48 |
self.localhost = gamesrv.HOSTNAME |
48 |
self.localhost = gamesrv.HOSTNAME |
| 49 |
self.filename = os.path.join(LOCALDIR, self.CONFIGFILE) |
49 |
self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE) |
| 50 |
data = self.loadoptionfile() |
50 |
data = self.loadoptionfile() |
| 51 |
self.globaloptions = Options(data.get('*', {})) |
51 |
self.globaloptions = Options(data.get('*', {})) |
| 52 |
self.localoptions = Options(data.get(self.localhost, {})) |
52 |
self.localoptions = Options(data.get(self.localhost, {})) |
|
Lines 333-339
Link Here
|
| 333 |
'buildcolors.py') |
333 |
'buildcolors.py') |
| 334 |
if os.path.exists(file): |
334 |
if os.path.exists(file): |
| 335 |
g = {'__name__': '__auto__', '__file__': file} |
335 |
g = {'__name__': '__auto__', '__file__': file} |
| 336 |
execfile(file, g) |
|
|
| 337 |
|
336 |
|
| 338 |
if port: |
337 |
if port: |
| 339 |
address = '%s:%s' % (host, port) |
338 |
address = '%s:%s' % (host, port) |