summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorThijs Vermeir <thijsvermeir@gmail.com>2015-10-20 18:13:36 +0200
committerThijs Vermeir <thijsvermeir@gmail.com>2015-10-20 18:13:36 +0200
commitd69f1ed3207c785d1a39ddd2992f6abb021b7540 (patch)
tree27218119488e57c500a3a647f00495f386cfb74b
parent0012896fa16d4311e46d9bd6b0de021f42d1d3a5 (diff)
downloadranger-d69f1ed3207c785d1a39ddd2992f6abb021b7540.tar.gz
colorscheme: check for compiled python files
Some systems only provide *.pyc files
-rw-r--r--ranger/gui/colorscheme.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index d6afcacc..d2b3b2d2 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -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: