1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

get_answer.py updated to not use hard coded path

This commit is contained in:
Brandon Lopez
2018-07-27 16:16:51 -07:00
parent 2a56f02751
commit 6862a7a1f9
+1 -1
View File
@@ -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