Skip to content

Commit

Permalink
colorscheme: check for compiled python files
Browse files Browse the repository at this point in the history
Some systems only provide *.pyc files
  • Loading branch information
lovebug356 committed Oct 20, 2015
1 parent 0012896 commit d69f1ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ranger/gui/colorscheme.py
Expand Up @@ -86,7 +86,7 @@ def _colorscheme_name_to_class(signal):
usecustom = not ranger.arg.clean

def exists(colorscheme):
return os.path.exists(colorscheme + '.py')
return os.path.exists(colorscheme + '.py') or os.path.exists(colorscheme + '.pyc')

def is_scheme(x):
try:
Expand Down

0 comments on commit d69f1ed

Please sign in to comment.