Skip to content

Commit

Permalink
remove requirement for declaring the PLAID_ENV environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ebridges committed Nov 21, 2017
1 parent 5993c74 commit 67aa39d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plaid2qif/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION='1.1.3'
VERSION='1.2.0'
8 changes: 4 additions & 4 deletions plaid2qif/plaid2qif.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
--verbose Verbose logging output.
"""

import os
import sys
import plaid
import json
Expand All @@ -37,7 +36,7 @@

CFG_DIR='./cfg'

# PLAID_ENV == 'sandbox', 'development', or 'production'
PLAID_ENV = 'development' ## sandbox', 'development', or 'production'

def download(account, fromto, output):
client = open_client()
Expand Down Expand Up @@ -119,7 +118,8 @@ def read_access_token(institution):


def open_client():
debug('opening client for %s' % os.environ['PLAID_ENV'])
global PLAID_ENV
debug('opening client for %s' % PLAID_ENV)
credentials = {}

info('reading credentials from plaid-credentials.json')
Expand All @@ -129,7 +129,7 @@ def open_client():
return plaid.Client(credentials['client_id'],
credentials['secret'],
credentials['public_key'],
os.environ['PLAID_ENV'])
PLAID_ENV)


def main():
Expand Down

0 comments on commit 67aa39d

Please sign in to comment.