summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-12 19:47:10 +0200
committerhut <hut@lavabit.com>2010-10-12 19:47:10 +0200
commitf331dffe14bf38e3f6d5bc21bc85c1c230432bb4 (patch)
treed273dd38cffa5d22f44ad4ff8f3df088af84959c
parentf5596d8862ce4d89157eceb5ff030d56e1bc9664 (diff)
downloadranger-f331dffe14bf38e3f6d5bc21bc85c1c230432bb4.tar.gz
core.fm: chmod u+x when using --copy-config=scope
-rw-r--r--ranger/core/fm.py3
1 files changed, 3 insertions, 0 deletions
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)
ac54c361b7b27'>^
30b5f112 ^
4eb0f14a ^
cce01f1d ^
4eb0f14a ^
30b5f112 ^
8413020a ^
216493ef ^









5bccee93 ^
abc2f0de ^
cf80fdc3 ^
97d96746 ^
e58be44f ^
519b10d1 ^
f91b21a1 ^
2bda22c3 ^
a00095c8 ^
2bda22c3 ^
a00095c8 ^
27adf031 ^

30b5f112 ^


446027b9 ^
93358d5e ^
fb7001cf ^
72c1c496 ^
bab75cae ^
d3cc5bd7 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65