Taking Transifex password from transifexrc
This commit is contained in:
parent
627c943a7b
commit
d8165126a1
|
@ -1,9 +1,17 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import requests
|
import requests
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import configparser
|
||||||
|
import os
|
||||||
|
|
||||||
TRANSIFEX_USER = ""
|
config = configparser.ConfigParser()
|
||||||
TRANSIFEX_PW = ""
|
config.read(os.path.expanduser("~") + '/.transifexrc')
|
||||||
|
if 'https://www.transifex.com' in config:
|
||||||
|
TRANSIFEX_USER = config['https://www.transifex.com']['username']
|
||||||
|
TRANSIFEX_PW = config['https://www.transifex.com']['password']
|
||||||
|
else:
|
||||||
|
TRANSIFEX_USER = ""
|
||||||
|
TRANSIFEX_PW = ""
|
||||||
|
|
||||||
print('DEVELOPERS\n==========\n')
|
print('DEVELOPERS\n==========\n')
|
||||||
p = subprocess.Popen("git log --format='%aN' --no-merges "
|
p = subprocess.Popen("git log --format='%aN' --no-merges "
|
||||||
|
|
Loading…
Reference in New Issue