Skip to content

Commit

Permalink
Merge "Introduce a userscripts directory"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Sep 29, 2017
2 parents f0d1696 + 282bee5 commit 3c26042
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -20,3 +20,5 @@ pywikibot/families/
build
dist
docs/_build/
/scripts/userscripts/*
!/scripts/userscripts/__init__.py
3 changes: 2 additions & 1 deletion pwb.py
Expand Up @@ -209,7 +209,8 @@ def main():
if not os.path.exists(filename):
script_paths = ['scripts',
'scripts.maintenance',
'scripts.archive']
'scripts.archive',
'scripts.userscripts']
from pywikibot import config # flake8: disable=E402
if config.user_script_paths:
if isinstance(config.user_script_paths, (tuple, list)):
Expand Down
2 changes: 2 additions & 0 deletions scripts/userscripts/__init__.py
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
"""THIS DIRECTORY IS TO HOLD USER-DEFINED BOT SCRIPTS."""

0 comments on commit 3c26042

Please sign in to comment.