while not stopped:
presences = []
for entry in os.listdir(config['paths']['fifodir']):
- if stat.S_ISFIFO(os.stat(entry).st_mode):
+ fullpath = "%s/%s" % (config['paths']['fifodir'], entry)
+ if stat.S_ISFIFO(os.stat(fullpath).st_mode):
logging.info("Creating presence for %s..." % entry)
- presences.append( Presence( entry, "%s/%s" %
- (config['paths']['fifodir'], entry) ) )
+ presences.append( Presence(entry, fullpath) )
if len(presences) == 0:
logging.error("No fifos could be found!")
break