def __init__(self, *args, **kw): """Initialize the PythonCard resource""" print "Resource init" BaseResource.__init__(self, *args, **kw) print "After supre" self._rsc = eval(open("%s.txt" % self.basesourcefile, "r").read()) self._rsc["controls"] = [] self._code = open("%s.py" % self.basesourcefile, "r").read()
def __init__(self, *args, **kw): """Initialize the PythonCard resource""" BaseResource.__init__(self, *args, **kw) self._rsc = eval(open("%s.txt" % self.basesourcefile, "r").read().replace("\r\n", "\n")) self._code = open("%s.py" % self.basesourcefile, "r").read()