db98c3f6c5
ranger is a console file manager with VI key bindings. It provides a minimalistic and nice curses interface with a view on the directory hierarchy. It ships with "rifle", a file launcher that is good at automatically finding out which program to use for what file type. http://ranger.nongnu.org Signed-off-by: Thijs Vermeir <thijsvermeir@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
32 lines
983 B
Diff
32 lines
983 B
Diff
From 654e3116825c4d12340613196279fb13a5662113 Mon Sep 17 00:00:00 2001
|
|
From: Thijs Vermeir <thijsvermeir@gmail.com>
|
|
Date: Tue, 20 Oct 2015 18:13:36 +0200
|
|
Subject: [PATCH] colorscheme: check for compiled python files
|
|
|
|
Some systems only provide *.pyc files
|
|
|
|
Patch accepted upstream:
|
|
https://github.com/hut/ranger/commit/d69f1ed3207c785d1a39ddd2992f6abb021b7540
|
|
|
|
Signed-off-by: Thijs Vermeir <thijsvermeir@gmail.com>
|
|
---
|
|
ranger/gui/colorscheme.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
|
|
index d6afcac..d2b3b2d 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:
|
|
--
|
|
2.6.1
|
|
|