From 6862a7a1f95b9bc8875d4dca09f4baa1e7134584 Mon Sep 17 00:00:00 2001 From: Brandon Lopez Date: Fri, 27 Jul 2018 16:16:51 -0700 Subject: [PATCH] get_answer.py updated to not use hard coded path --- lib/get_answer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get_answer.py b/lib/get_answer.py index 9bc129c..c73dfdf 100644 --- a/lib/get_answer.py +++ b/lib/get_answer.py @@ -311,7 +311,7 @@ def _get_answer_for_question(topic): else: topic = [topic] - cmd = ["/home/igor/cheat.sh/bin/get-answer-for-question"] + topic + cmd = [os.path.join(MYDIR, "bin/get-answer-for-question")] + topic proc = Popen(cmd, stdout=PIPE, stderr=PIPE) answer = proc.communicate()[0].decode('utf-8') return answer