Skip to content

Commit

Permalink
config.py: Create empty data sub-directory
Browse files Browse the repository at this point in the history
Remove need for the empty `data/` subdirectory
by creating an empty `BOT_DATA_DIR` when the
config.py file is loaded by errbot.

Closes #569
  • Loading branch information
nvzard authored and gitmate-bot committed Jul 30, 2018
1 parent a9d99de commit 0b8c98c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config.py
Expand Up @@ -55,6 +55,10 @@
HIDE_RESTRICTED_COMMANDS = True

BOT_DATA_DIR = os.path.join(BOT_ROOT, 'data')
if not os.path.isdir(BOT_DATA_DIR):
# create an empty data directory
os.mkdir(BOT_DATA_DIR)

BOT_EXTRA_PLUGIN_DIR = BOT_ROOT

BOT_LOG_FILE = os.path.join(BOT_ROOT, 'errbot.log')
Expand Down
2 changes: 0 additions & 2 deletions data/.gitignore

This file was deleted.

0 comments on commit 0b8c98c

Please sign in to comment.