From f331dffe14bf38e3f6d5bc21bc85c1c230432bb4 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 12 Oct 2010 19:47:10 +0200 Subject: core.fm: chmod u+x when using --copy-config=scope --- ranger/core/fm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ranger/core/fm.py b/ranger/core/fm.py index 37f79554..cf3f4b20 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -21,6 +21,7 @@ from time import time from collections import deque import mimetypes import os +import stat import sys import ranger @@ -146,6 +147,8 @@ class FM(Actions, SignalDispatcher): copy('defaults/options.py', 'options.py') if which == 'scope' or which == 'all': copy('data/scope.sh', 'scope.sh') + os.chmod(self.confpath('scope.sh'), + os.stat(self.confpath('scope.sh')).st_mode | stat.S_IXUSR) if which not in \ ('all', 'apps', 'scope', 'commands', 'keys', 'options'): sys.stderr.write("Unknown config file `%s'\n" % which) -- cgit 1.4.1-2-gfad0 ain'>main Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/085scenario_console.cc
blob: 31aa4fe72a8bd5724eebf82b74bd6cb5a2399c01 (plain) (tree)
1
2
3
4
5
6
7
8
9
10