Set netrc location with QUTE_NETRC

This commit is contained in:
Kevin Velghe 2016-10-05 12:03:52 +02:00
parent 8dab1cf58a
commit e3c92a9bae

View File

@ -330,7 +330,7 @@ class NetworkManager(QNetworkAccessManager):
# altogether.
reply.netrc_used = True
try:
net = netrc.netrc()
net = netrc.netrc(os.environ.get('QUTE_NETRC'))
authenticators = net.authenticators(reply.url().host())
if authenticators is not None:
(user, _account, password) = authenticators