/usr/share/kayali/maximaparsertokens.py is in kayali 0.3.2-0ubuntu4.
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 | from configuration import config
import logging
l = logging.getLogger(__name__)
class TokenValues:
def __init__(self, fileName):
l.debug("parse " + fileName)
tokensFile = file(fileName)
for line in tokensFile:
pos = line.find("=")
if pos != -1:
varName = line[:pos]
varValue = int(line[pos+1:])
l.debug("set var %s to %s " % (varName,varValue))
setattr(self,varName, varValue)
tokenValues = TokenValues(config["maximatokensfile"])
|