X-Git-Url: http://git.treefish.org/~alex/mtxbot.git/blobdiff_plain/b07be8cb62cc873d0c069c6410fdb0275620f66e..d9f14eda67869d8dec02066325fa47995bf4aa0d:/src/mtxbot.py diff --git a/src/mtxbot.py b/src/mtxbot.py index 0843f7d..0372ffe 100755 --- a/src/mtxbot.py +++ b/src/mtxbot.py @@ -64,10 +64,10 @@ with open(sys.argv[1]) as configFile: 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