Removed data dir creation

This commit is contained in:
mrhanky 2017-05-16 13:51:47 +02:00
parent bcf5f58c6b
commit 7eca476e29
No known key found for this signature in database
GPG Key ID: 67D772C481CB41B8

View File

@ -32,9 +32,6 @@ def main(cfg_file):
cfg.update(CFG_DEV) cfg.update(CFG_DEV)
elif 'PASSWORD' in os.environ: elif 'PASSWORD' in os.environ:
cfg['password'] = os.environ['PASSWORD'] cfg['password'] = os.environ['PASSWORD']
data = os.path.dirname(cfg['storage'].split('://', 1)[1])
if not os.path.exists(data):
os.makedirs(data)
bot = IrcBot.from_config(cfg) bot = IrcBot.from_config(cfg)
bot.run() bot.run()