1 From 654e3116825c4d12340613196279fb13a5662113 Mon Sep 17 00:00:00 2001
2 From: Thijs Vermeir <thijsvermeir@gmail.com>
3 Date: Tue, 20 Oct 2015 18:13:36 +0200
4 Subject: [PATCH] colorscheme: check for compiled python files
6 Some systems only provide *.pyc files
8 Patch accepted upstream:
9 https://github.com/hut/ranger/commit/d69f1ed3207c785d1a39ddd2992f6abb021b7540
11 Signed-off-by: Thijs Vermeir <thijsvermeir@gmail.com>
13 ranger/gui/colorscheme.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
17 index d6afcac..d2b3b2d 100644
18 --- a/ranger/gui/colorscheme.py
19 +++ b/ranger/gui/colorscheme.py
20 @@ -86,7 +86,7 @@ def _colorscheme_name_to_class(signal):
21 usecustom = not ranger.arg.clean
23 def exists(colorscheme):
24 - return os.path.exists(colorscheme + '.py')
25 + return os.path.exists(colorscheme + '.py') or os.path.exists(colorscheme + '.pyc')