mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 17:08:29 +01:00
Don't split cheatpath for no reason
This commit is contained in:
parent
cdf0aa1926
commit
9946bab1a9
1 changed files with 1 additions and 1 deletions
2
cheat
2
cheat
|
@ -21,7 +21,7 @@ if os.path.isdir(user_cheat_dir):
|
||||||
|
|
||||||
# add the cheat files from the directory specified in $CHEATPATH
|
# add the cheat files from the directory specified in $CHEATPATH
|
||||||
if 'CHEATPATH' in os.environ and os.environ['CHEATPATH']:
|
if 'CHEATPATH' in os.environ and os.environ['CHEATPATH']:
|
||||||
path = os.environ['CHEATPATH'].split(os.pathsep)
|
path = os.environ['CHEATPATH']
|
||||||
if os.path.isdir(path):
|
if os.path.isdir(path):
|
||||||
cheatsheets += [(f, path) for f in os.listdir(path) if '.' not in f]
|
cheatsheets += [(f, path) for f in os.listdir(path) if '.' not in f]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue