File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff 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
5254class Fosdem (Adapter ):
Original file line number Diff line number Diff 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
173174if os .environ .get ('REDIS_HOST' , '' ).lower () != 'none' :
Original file line number Diff line number Diff line change 3434
3535if 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"
You can’t perform that action at this time.
0 commit comments