jenkins-bot has submitted this change and it was merged.
Change subject: Note missing user-config.py before starting generate_user_files ......................................................................
Note missing user-config.py before starting generate_user_files
Change-Id: I8be54f76e6cb9e7352bd1b19d51515b3aa0b1340 --- M pwb.py 1 file changed, 4 insertions(+), 2 deletions(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/pwb.py b/pwb.py index a684c70..cfd9358 100644 --- a/pwb.py +++ b/pwb.py @@ -80,8 +80,10 @@ sys.argv.pop(i) break
- -if not os.path.exists(os.path.join(os.environ["PYWIKIBOT2_DIR"], "user-config.py")): +user_config_path = os.path.join(os.environ["PYWIKIBOT2_DIR"], "user-config.py") +if not os.path.exists(user_config_path): + print "NOTE:", user_config_path, "was not found!" + print "Please follow the prompts to create it:" run_python_file('generate_user_files.py', ['generate_user_files.py'])
if len(sys.argv) > 1:
pywikibot-commits@lists.wikimedia.org