mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 01:28:30 +02:00
Allow suffixes for cheat files (e.g. DataFrames.jl).
This commit is contained in:
2
cheat
2
cheat
@ -23,7 +23,7 @@ def cheat_files(cheat_directories):
|
|||||||
cheats = {}
|
cheats = {}
|
||||||
for cheat_dir in reversed(cheat_directories):
|
for cheat_dir in reversed(cheat_directories):
|
||||||
cheats.update(dict([ (cheat, cheat_dir)\
|
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
|
return cheats
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Reference in New Issue
Block a user