17 lines
282 B
Text
17 lines
282 B
Text
|
#!/usr/bin/python2
|
||
|
|
||
|
import gi
|
||
|
|
||
|
gi.require_version('GnomeKeyring', '1.0')
|
||
|
|
||
|
import logging
|
||
|
|
||
|
logger = logging.getLogger('keyring')
|
||
|
logger.addHandler(logging.StreamHandler())
|
||
|
|
||
|
import keyring
|
||
|
import sys
|
||
|
import getpass
|
||
|
|
||
|
keyring.set_password('offlineimap', sys.argv[1], getpass.getpass())
|