summarylogtreecommitdiffstats
path: root/client_secrets.patch
diff options
context:
space:
mode:
Diffstat (limited to 'client_secrets.patch')
-rw-r--r--client_secrets.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/client_secrets.patch b/client_secrets.patch
new file mode 100644
index 000000000000..c6c7139d7090
--- /dev/null
+++ b/client_secrets.patch
@@ -0,0 +1,67 @@
+--- old-gam.py 2015-08-18 17:20:00.268784523 +0200
++++ gam.py 2015-08-18 18:33:22.165903501 +0200
+@@ -319,7 +319,7 @@
+ global customerId
+ oauth2file = getGamPath()+u'oauth2.txt'
+ try:
+- oauth2file = getGamPath()+os.environ[u'OAUTHFILE']
++ oauth2file = os.environ[u'OAUTHFILE']
+ except KeyError:
+ pass
+ storage = oauth2client.file.Storage(oauth2file)
+@@ -526,7 +526,7 @@
+ global domain, customerId, extra_args
+ oauth2file = getGamPath()+u'oauth2.txt'
+ try:
+- oauth2file = getGamPath()+os.environ[u'OAUTHFILE']
++ oauth2file = os.environ[u'OAUTHFILE']
+ except KeyError:
+ pass
+ storage = oauth2client.file.Storage(oauth2file)
+@@ -589,7 +589,7 @@
+ global extra_args
+ oauth2servicefile = getGamPath()+u'oauth2service'
+ try:
+- oauth2servicefile = getGamPath()+os.environ[u'OAUTHSERVICEFILE']
++ oauth2servicefile = os.environ[u'OAUTHSERVICEFILE']
+ except KeyError:
+ pass
+ oauth2servicefilejson = u'%s.json' % oauth2servicefile
+@@ -5520,7 +5520,7 @@
+ except IndexError:
+ oauth2file = getGamPath()+u'oauth2.txt'
+ try:
+- oauth2file = getGamPath()+os.environ[u'OAUTHFILE']
++ oauth2file = os.environ[u'OAUTHFILE']
+ except KeyError:
+ pass
+ storage = oauth2client.file.Storage(oauth2file)
+@@ -7898,7 +7898,7 @@
+ except IndexError:
+ oauth2file = getGamPath()+u'oauth2.txt'
+ try:
+- oauth2file = getGamPath()+os.environ[u'OAUTHFILE']
++ oauth2file = os.environ[u'OAUTHFILE']
+ except KeyError:
+ pass
+ storage = oauth2client.file.Storage(oauth2file)
+@@ -7941,7 +7941,7 @@
+ def doDeleteOAuth():
+ oauth2file = getGamPath()+u'oauth2.txt'
+ try:
+- oauth2file = getGamPath()+os.environ[u'OAUTHFILE']
++ oauth2file = os.environ[u'OAUTHFILE']
+ except KeyError:
+ pass
+ storage = oauth2client.file.Storage(oauth2file)
+@@ -7981,6 +7981,10 @@
+
+ def doRequestOAuth(incremental_auth=False):
+ CLIENT_SECRETS = getGamPath()+u'client_secrets.json'
++ try:
++ CLIENT_SECRETS = os.environ[u'CLIENTSECRETS']
++ except KeyError:
++ pass
+ MISSING_CLIENT_SECRETS_MESSAGE = u"""
+ WARNING: Please configure OAuth 2.0
+