done, pending = await asyncio.wait( presence_tasks,
return_when = asyncio.FIRST_EXCEPTION )
done, pending = await asyncio.wait( presence_tasks,
return_when = asyncio.FIRST_EXCEPTION )
- for entry in os.listdir(config['paths']['fifodir']):
- fullpath = "%s/%s" % (config['paths']['fifodir'], entry)
+ for entry in os.listdir(fifo_dir):
+ fullpath = "%s/%s" % (fifo_dir, entry)
if stat.S_ISFIFO(os.stat(fullpath).st_mode):
logging.info("Creating presence for %s..." % entry)
presences.append( Presence(entry, fullpath) )
if stat.S_ISFIFO(os.stat(fullpath).st_mode):
logging.info("Creating presence for %s..." % entry)
presences.append( Presence(entry, fullpath) )