Skip to content

Commit 6d74567

Browse files
committed
updated cheat paths
1 parent 8fcb4dd commit 6d74567

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/adapter/cmd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ def _get_list(self):
4444
return _get_filenames(PATH_CHEAT_PAGES)
4545

4646
def get_page(self, topic, request_options=None):
47-
cmd = ["cheat", topic]
47+
cmd = ["/usr/local/bin/cheat", topic]
48+
print(cmd)
4849
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
4950
answer = proc.communicate()[0].decode('utf-8')
51+
print("answer=%s"% answer)
5052
return answer
5153

5254
class Fosdem(Adapter):

lib/get_answer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ def __get_topic_type(topic):
168168

169169
if topic not in self._cached_topic_type:
170170
self._cached_topic_type[topic] = __get_topic_type(topic)
171+
print("%s %s" % (topic, self._cached_topic_type[topic]))
171172
return self._cached_topic_type[topic]
172173

173174
if os.environ.get('REDIS_HOST', '').lower() != 'none':

lib/globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
if USE_OS_PACKAGES:
3636
PATH_TLDR_PAGES = "/home/igor/.tldr/cache/pages/*/*.md"
37-
PATH_CHEAT_PAGES = "/usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/*"
37+
PATH_CHEAT_PAGES = "/usr/share/cheat/*"
3838
PATH_CHEAT_SHEETS = "/home/igor/cheat.sheets/sheets/"
3939
PATH_CHEAT_SHEETS_SPOOL = "/home/igor/cheat.sheets/spool/"
4040
PATH_LEARNXINY = "/home/igor/git/github.com/adambard/learnxinyminutes-docs"

0 commit comments

Comments
 (0)