From 9140d2ebfb878615fc49bfa223c5cd3b79f31805 Mon Sep 17 00:00:00 2001 From: Lars Yencken Date: Wed, 21 Aug 2013 16:35:39 +1000 Subject: [PATCH] Allow suffixes for cheat files (e.g. DataFrames.jl). --- cheat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat b/cheat index e49c0ce..8ddd7b8 100755 --- a/cheat +++ b/cheat @@ -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():