Weird Error
Alex
cut_me_out at hotmail.com
Tue Aug 29 16:12:36 EDT 2000
That code gives me an AttributeError during the initialization. I have
to comment out the call to the _readLogLevel method. Then it runs
fine. Do you have a version that gives the error you mentioned?
Alex.
Gratuitous inclusion of amended code:
class Qconfig:
def __init__(self):
self.qname = ''
self.packages = {}
self.transport = {}
self.qmaster = {}
self._CFlag = 0
self.qpath = ''
if os.name == 'nt':
self.qpath = os.path.join('d:','qp')
# self.qLogLevel = self._readLogLevel()
def getQPath(self):
"""get the qpath from the qconfig object"""
return self.qpath
--
The chain of destiny can only be grasped one link at a time.
-- Sir Winston Churchill
More information about the Python-list
mailing list