/usr/share/games/xpilot-ng/xpngcc/config.py is in xpilot-ng-common 1:4.7.3-2.3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | import os
import sys
def which(app):
# Does this work on Windows?
dirnames = os.environ['PATH'].split(os.path.pathsep)
for dirname in dirnames:
filename = os.path.join(dirname, app)
if (os.access(filename, os.X_OK) and
os.path.isfile(filename)):
return filename
return os.environ.get(app.replace('-', '_'), None)
meta = ('meta.xpilot.org', 4401)
client_x11 = which('xpilot-ng-x11')
client_sdl = which('xpilot-ng-sdl')
if client_sdl:
client = client_sdl
else:
client = client_x11
if (sys.platform == 'win32'):
server = r'"C:\Program Files\XPilotNG-SDL\xpilot-ng-server"'
else:
server = which('xpilot-ng-server')
if (sys.platform == 'win32'):
xpilotrc = r'C:\Progra~1\XPilotNG-SDL\xpilotrc.txt'
else:
xpilotrc = os.path.expanduser('~/.xpilotrc')
record_url = 'http://xpilot.sourceforge.net/ballruns/'
xpreplay = which('xpilot-ng-replay')
jxpmap_url = 'http://xpilot.sf.net/jxpmap/jxpmap.jnlp'
javaws = which('javaws')
mapedit = which('xpilot-ng-xp-mapedit')
irc_server = 'irc.freenode.net'
irc_channel = '#xpilot'
if (sys.platform == 'win32'):
mapdir = r'C:\Progra~1\XPilotNG-SDL\lib\maps'
else:
mapdir = '/usr/share/games/xpilot-ng/maps'
png_path = os.path.dirname(os.path.abspath(__file__))
is_muted = False
|