Allow suffixes for cheat files (e.g. DataFrames.jl).

This commit is contained in:
Lars Yencken 2013-08-21 16:35:39 +10:00
parent 1e26280da7
commit 9140d2ebfb
1 changed files with 1 additions and 1 deletions

2
cheat
View File

@ -23,7 +23,7 @@ def cheat_files(cheat_directories):
cheats = {}
for cheat_dir in reversed(cheat_directories):
cheats.update(dict([ (cheat, cheat_dir)\
for cheat in os.listdir(cheat_dir) if '.' not in cheat ]))
for cheat in os.listdir(cheat_dir) if not cheat.startswith('.')]))
return cheats
def main():