summaryrefslogtreecommitdiff
path: root/contributers.template.py
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2019-05-12 18:22:51 +0200
committerByteHamster <info@bytehamster.com>2019-05-12 18:22:51 +0200
commitd8165126a1b59f70ecc9856af11fdbe4d1650a4f (patch)
tree3a1e67bf76b3df9fea628389ed1cee82b916353b /contributers.template.py
parent627c943a7b22380a53bd26b78380fea3ad262551 (diff)
downloadAntennaPod-d8165126a1b59f70ecc9856af11fdbe4d1650a4f.zip
Taking Transifex password from transifexrc
Diffstat (limited to 'contributers.template.py')
-rwxr-xr-xcontributers.template.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/contributers.template.py b/contributers.template.py
index 0f4d78698..4492fae79 100755
--- a/contributers.template.py
+++ b/contributers.template.py
@@ -1,9 +1,17 @@
#!/usr/bin/env python3
import requests
import subprocess
+import configparser
+import os
-TRANSIFEX_USER = ""
-TRANSIFEX_PW = ""
+config = configparser.ConfigParser()
+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')
p = subprocess.Popen("git log --format='%aN' --no-merges "