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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user