jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/583036 )
Change subject: [cleanup] remove rewrite_path duplication
......................................................................
[cleanup] remove rewrite_path duplication
Change-Id: I110eec8fbbe4069732a6b2ddfc4607c45aec477d
---
M pwb.py
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Dvorapa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py
index 228c307..d820522 100755
--- a/pwb.py
+++ b/pwb.py
@@ -182,10 +182,9 @@
# Either it is '.' if the user's current working directory is the same,
# or it is the absolute path for the directory of pwb.py
absolute_path = abspath(os.path.dirname(sys.argv[0]))
-rewrite_path = absolute_path
-if rewrite_path not in sys.path[:2]:
- sys.path.insert(1, rewrite_path)
+if absolute_path not in sys.path[:2]:
+ sys.path.insert(1, absolute_path)
if not check_modules():
sys.exit()
--
To view, visit
https://gerrit.wikimedia.org/r/583036
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I110eec8fbbe4069732a6b2ddfc4607c45aec477d
Gerrit-Change-Number: 583036
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)