Added some comments to the cheat file.

This commit is contained in:
Chris Lane 2013-08-19 21:35:51 -04:00
parent f3c37a37eb
commit 1e26280da7
1 changed files with 2 additions and 0 deletions

2
cheat
View File

@ -2,6 +2,7 @@
import os
import sys
# assembles a list of directories containing cheatsheets
def cheat_directories():
default_directories = [os.path.expanduser('~/.cheat')]
try:
@ -17,6 +18,7 @@ def cheat_directories():
else:
return default
# assembles a dictionary of cheatsheets found in the above directories
def cheat_files(cheat_directories):
cheats = {}
for cheat_dir in reversed(cheat_directories):