jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/378734 )
Change subject: Introduce a userscripts directory
......................................................................
Introduce a userscripts directory
Bug: T176147
Change-Id: Ia9fc57243f5b66b20b00911f373c916d79945ceb
---
M .gitignore
M pwb.py
A scripts/userscripts/__init__.py
3 files changed, 6 insertions(+), 1 deletion(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
Zoranzoki21: Looks good to me, but someone else must approve
diff --git a/.gitignore b/.gitignore
index 3e00551..cf0b69d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,5 @@
build
dist
docs/_build/
+/scripts/userscripts/*
+!/scripts/userscripts/__init__.py
diff --git a/pwb.py b/pwb.py
index 03b46d4..cd99f5f 100755
--- a/pwb.py
+++ b/pwb.py
@@ -209,7 +209,8 @@
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)):
diff --git a/scripts/userscripts/__init__.py b/scripts/userscripts/__init__.py
new file mode 100644
index 0000000..02a8c63
--- /dev/null
+++ b/scripts/userscripts/__init__.py
@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+"""THIS DIRECTORY IS TO HOLD USER-DEFINED BOT SCRIPTS."""
--
To view, visit
https://gerrit.wikimedia.org/r/378734
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia9fc57243f5b66b20b00911f373c916d79945ceb
Gerrit-PatchSet: 7
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Huji <huji.huji(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: Huji <huji.huji(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <Ladsgroup(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zoranzoki21 <dori.gord(a)orion.rs>
Gerrit-Reviewer: jenkins-bot <>