mirror of
https://github.com/chubin/cheat.sh.git
synced 2025-01-07 13:47:44 +03:00
get_answer.py updated to not use hard coded path
This commit is contained in:
parent
2a56f02751
commit
6862a7a1f9
@ -311,7 +311,7 @@ def _get_answer_for_question(topic):
|
|||||||
else:
|
else:
|
||||||
topic = [topic]
|
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)
|
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
|
||||||
answer = proc.communicate()[0].decode('utf-8')
|
answer = proc.communicate()[0].decode('utf-8')
|
||||||
return answer
|
return answer
|
||||||
|
Loading…
Reference in New Issue
Block a user