Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3901 from gratipay/fix-payday-paths
Browse files Browse the repository at this point in the history
tweak masspay scripts
  • Loading branch information
rohitpaulk committed Jan 24, 2016
2 parents 569be89 + 5521d9d commit 8dfc76d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/masspay.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from httplib import IncompleteRead


os.chdir('../masspay')
os.chdir('../logs/masspay')
ts = datetime.datetime.now().strftime('%Y-%m-%d')
INPUT_CSV = '{}.input.csv'.format(ts)
PAYPAL_CSV = '{}.output.paypal.csv'.format(ts)
Expand Down Expand Up @@ -198,7 +198,7 @@ def post_back_to_gratipay():
try:
gratipay_api_key = os.environ['GRATIPAY_API_KEY']
except KeyError:
gratipay_api_key = getpass.getpass("Gratipay API key: ")
gratipay_api_key = getpass.getpass("Your admin user Gratipay API key: ")

try:
gratipay_base_url = os.environ['GRATIPAY_BASE_URL']
Expand Down
4 changes: 2 additions & 2 deletions payday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ start () {
# ====

if [ "$2" == "for_real_please" ]; then
LOG="../paydays/gratipay-$1.log"
LOG="../logs/paydays/gratipay-$1.log"
else
LOG="../paydays/test-$1.log"
LOG="../logs/paydays/test-$1.log"
fi

if [ -f $LOG ]; then
Expand Down

0 comments on commit 8dfc76d

Please sign in to comment.