diff options
author | hut <hut@lavabit.com> | 2010-10-12 19:47:10 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-12 19:47:10 +0200 |
commit | f331dffe14bf38e3f6d5bc21bc85c1c230432bb4 (patch) | |
tree | d273dd38cffa5d22f44ad4ff8f3df088af84959c | |
parent | f5596d8862ce4d89157eceb5ff030d56e1bc9664 (diff) | |
download | ranger-f331dffe14bf38e3f6d5bc21bc85c1c230432bb4.tar.gz |
core.fm: chmod u+x when using --copy-config=scope
-rw-r--r-- | ranger/core/fm.py | 3 |
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) |