jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Use absolute path for generate_user_files.py

Bug: T101829
Change-Id: Id53abdad22b86bd4a8c7707861831b4f8ccbdd42
---
M pwb.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pwb.py b/pwb.py
index afd2607..67a0682 100755
--- a/pwb.py
+++ b/pwb.py
@@ -178,7 +178,7 @@
or filename == 'version.py'):
print("NOTE: 'user-config.py' was not found!")
print("Please follow the prompts to create it:")
- run_python_file('generate_user_files.py',
+ run_python_file(os.path.join(_pwb_dir, 'generate_user_files.py'),
['generate_user_files.py'],
['generate_user_files.py'])
# because we have loaded pywikibot without user-config.py loaded, we need to re-start

To view, visit change 433729. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id53abdad22b86bd4a8c7707861831b4f8ccbdd42
Gerrit-Change-Number: 433729
Gerrit-PatchSet: 1
Gerrit-Owner: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>