Changed password prompt for upload.py
Included username and site.
This commit is contained in:
parent
34abe97304
commit
5a0ddecfd4
@ -76,7 +76,9 @@ else:
|
||||
sys.exit(0)
|
||||
|
||||
# Login with username and password
|
||||
site.login(sys.argv[3], sys.argv[4] if len(sys.argv) > 4 else getpass.getpass())
|
||||
username = sys.argv[3]
|
||||
passowrd = sys.argv[4] if len(sys.argv) > 4 else getpass.getpass('Password for ' + username + ' on ' + wiki + ": ")
|
||||
site.login(username, password)
|
||||
|
||||
# Base page name on-wiki
|
||||
root = sys.argv[2]
|
||||
|
Loading…
x
Reference in New Issue
Block a user