Use cheat_dir var instead of recall the function

This commit is contained in:
Loïc Runarvot 2013-09-15 19:59:34 +02:00
parent 98b254b799
commit 22d3d01827
1 changed files with 1 additions and 1 deletions

2
cheat
View File

@ -180,7 +180,7 @@ def main():
# list cheat directories and exit # list cheat directories and exit
if keyphrase in ['-d', '--cheat-directories']: if keyphrase in ['-d', '--cheat-directories']:
print("\n".join(cheat_directories())) print("\n".join(cheat_dirs))
exit() exit()
# list cheatsheets and exit # list cheatsheets and exit