jenkins-bot merged this change.
[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.