Don't split cheatpath for no reason

This commit is contained in:
Louis Taylor 2013-08-18 17:41:32 +01:00
parent cdf0aa1926
commit 9946bab1a9

2
cheat
View file

@ -21,7 +21,7 @@ if os.path.isdir(user_cheat_dir):
# add the cheat files from the directory specified in $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):
cheatsheets += [(f, path) for f in os.listdir(path) if '.' not in f]