Legoktm has submitted this change and it was merged.

Change subject: Use absolute path to password file
......................................................................


Use absolute path to password file

Change-Id: Idbd1250a24cc8cf4ffccb67fef0e8cb146d6969f
---
M .travis.yml
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Legoktm: Verified; Looks good to me, approved



diff --git a/.travis.yml b/.travis.yml
index 2aa12d1..21b46e9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,10 +5,11 @@
   - mkdir ~/.pywikibot
 
   - touch ~/.pywikibot/user-config.py
+  - echo "import os" > ~/.pywikibot/user-config.py
   - echo "mylang = 'en'" > ~/.pywikibot/user-config.py
   - echo "family = 'wikipedia'" > ~/.pywikibot/user-config.py
   - echo "usernames['wikipedia']['en'] = 'Pywikibot-test'" > 
~/.pywikibot/user-config.py
-  - echo "password_file = ./passwordfile" > ~/.pywikibot/user-config.py
+  - echo "password_file = os.path.expanduser('~/.pywikibot/passwordfile')" > 
~/.pywikibot/user-config.py
 
   - touch ~/.pywikibot/passwordfile
   - echo "('Pywikibot-test', '"$USER_PASSWORD"')" > ~/.pywikibot/passwordfile
@@ -29,4 +30,4 @@
     channels:
       - "chat.freenode.net#pywikipediabot"
     on_success: change
-    on_failure: always
\ No newline at end of file
+    on_failure: always

-- 
To view, visit https://gerrit.wikimedia.org/r/78483
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idbd1250a24cc8cf4ffccb67fef0e8cb146d6969f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to