mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-29 18:31:38 +00:00
fix svars-write.py
This commit is contained in:
@@ -6,10 +6,7 @@ cfg = json.load(sys.stdin)
|
|||||||
cfg['client_secret'] = os.getenv('client_secret')
|
cfg['client_secret'] = os.getenv('client_secret')
|
||||||
jid = os.getenv('jid')
|
jid = os.getenv('jid')
|
||||||
cfg['refresh_token'] = os.getenv('refresh_%s' % jid)
|
cfg['refresh_token'] = os.getenv('refresh_%s' % jid)
|
||||||
name = os.getenv('TRAVIS_JOB_NAME')
|
gampath = os.getenv('gampath')
|
||||||
if name.endswith('Testing'):
|
out_file = os.join(gampath, 'oauth2.txt')
|
||||||
out_file = 'oauth2.txt'
|
|
||||||
else:
|
|
||||||
out_file = 'gam/oauth2.txt'
|
|
||||||
with open(out_file, 'w') as f:
|
with open(out_file, 'w') as f:
|
||||||
json.dump(cfg, f)
|
json.dump(cfg, f)
|
||||||
|
|||||||
Reference in New Issue
Block a user