fix persist_dir creation

This commit is contained in:
Ryan Hitchman 2014-04-30 20:12:28 -07:00
parent 08ea88afd2
commit 1d7a82fe58
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -16,7 +16,7 @@ class Bot(object):
self.conns = {}
self.persist_dir = os.path.abspath('persist')
if not os.path.exists(self.persist_dir):
os.mkdir(bot.persist_dir)
os.mkdir(self.persist_dir)
bot = Bot()