From a6ddda05f564f46c4dc9a41b21b85baa766fbb59 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Thu, 20 Sep 2018 19:39:18 -0500 Subject: [PATCH] Removed uneccisary prints and updated requirements.txt; fixed cta_api_key not in cwd --- ctabus.py | 3 ++- main.py | 1 - requirements.txt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ctabus.py b/ctabus.py index a14e39b..833b05a 100644 --- a/ctabus.py +++ b/ctabus.py @@ -1,7 +1,8 @@ from urllib.parse import urlencode from requests import get import json -with open('cta_api_key') as file: +import os.path as osp +with open(osp.join(osp.dirname(__file__),'cta_api_key')) as file: api = file.read() def get_data(type,api_key = api,**args): diff --git a/main.py b/main.py index 7601c2a..cd50599 100644 --- a/main.py +++ b/main.py @@ -89,7 +89,6 @@ if __name__ == "__main__": parser.add_argument('-d','--direction',default = None) args = parser.parse_args() args.arg = ' '.join(args.arg) - print(args) if not args.arg.isdecimal(): #routes if not args.route: diff --git a/requirements.txt b/requirements.txt index 414733f..231acec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ editdistance -requests \ No newline at end of file +requests +python-dateutil \ No newline at end of file