Logo Search packages:      
Sourcecode: kayali version File versions  Download package


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"])

Generated by  Doxygen 1.6.0   Back to index