diff options
author | hut <hut@lavabit.com> | 2012-08-02 03:51:00 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-02 03:52:28 +0200 |
commit | 176e8a684cb490393f84e7fdccc6aafda559364b (patch) | |
tree | 526b3cc3f1f182ae62ca6b67146fcf7fbb935fc3 /ranger | |
parent | d2c8c6cb3f24ac626275af133bb723e549850538 (diff) | |
download | ranger-176e8a684cb490393f84e7fdccc6aafda559364b.tar.gz |
renamed ranger/defaults to ranger/config
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/__init__.py (renamed from ranger/defaults/__init__.py) | 0 | ||||
-rw-r--r-- | ranger/config/commands.py (renamed from ranger/defaults/commands.py) | 0 | ||||
-rw-r--r-- | ranger/config/options.py (renamed from ranger/defaults/options.py) | 0 | ||||
-rw-r--r-- | ranger/config/rc.conf (renamed from ranger/defaults/rc.conf) | 0 | ||||
-rw-r--r-- | ranger/config/rifle.conf (renamed from ranger/defaults/rifle.conf) | 0 | ||||
-rw-r--r-- | ranger/core/fm.py | 10 | ||||
-rw-r--r-- | ranger/core/helper.py | 6 | ||||
-rw-r--r-- | ranger/core/main.py | 2 | ||||
-rw-r--r-- | ranger/core/shared.py | 2 | ||||
-rwxr-xr-x | ranger/ext/rifle.py | 2 |
10 files changed, 11 insertions, 11 deletions
diff --git a/ranger/defaults/__init__.py b/ranger/config/__init__.py index 71df3cb3..71df3cb3 100644 --- a/ranger/defaults/__init__.py +++ b/ranger/config/__init__.py diff --git a/ranger/defaults/commands.py b/ranger/config/commands.py index db411436..db411436 100644 --- a/ranger/defaults/commands.py +++ b/ranger/config/commands.py diff --git a/ranger/defaults/options.py b/ranger/config/options.py index 681feabc..681feabc 100644 --- a/ranger/defaults/options.py +++ b/ranger/config/options.py diff --git a/ranger/defaults/rc.conf b/ranger/config/rc.conf index a347d116..a347d116 100644 --- a/ranger/defaults/rc.conf +++ b/ranger/config/rc.conf diff --git a/ranger/defaults/rifle.conf b/ranger/config/rifle.conf index 039344bd..039344bd 100644 --- a/ranger/defaults/rifle.conf +++ b/ranger/config/rifle.conf diff --git a/ranger/core/fm.py b/ranger/core/fm.py index 50c22067..1ba0e187 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -56,7 +56,7 @@ class FM(Actions, SignalDispatcher): if not ranger.arg.clean and os.path.isfile(self.confpath('rifle.conf')): rifleconf = self.confpath('rifle.conf') else: - rifleconf = self.relpath('defaults/rifle.conf') + rifleconf = self.relpath('config/rifle.conf') self.rifle = Rifle(rifleconf) self.rifle.reload_config() @@ -130,13 +130,13 @@ class FM(Actions, SignalDispatcher): except Exception as e: sys.stderr.write(" ERROR: %s\n" % str(e)) if which == 'rifle' or which == 'all': - copy('defaults/rifle.conf', 'rifle.conf') + copy('config/rifle.conf', 'rifle.conf') if which == 'commands' or which == 'all': - copy('defaults/commands.py', 'commands.py') + copy('config/commands.py', 'commands.py') if which == 'rc' or which == 'all': - copy('defaults/rc.conf', 'rc.conf') + copy('config/rc.conf', 'rc.conf') if which == 'options' or which == 'all': - copy('defaults/options.py', 'options.py') + copy('config/options.py', 'options.py') if which == 'scope' or which == 'all': copy('data/scope.sh', 'scope.sh') os.chmod(self.confpath('scope.sh'), diff --git a/ranger/core/helper.py b/ranger/core/helper.py index 2487875d..e46e686d 100644 --- a/ranger/core/helper.py +++ b/ranger/core/helper.py @@ -74,7 +74,7 @@ def load_settings(fm, clean): from ranger.core.actions import Actions import ranger.core.shared import ranger.api.commands - from ranger.defaults import commands + from ranger.config import commands # Load default commands fm.commands = ranger.api.commands.CommandContainer() @@ -95,7 +95,7 @@ def load_settings(fm, clean): # Load rc.conf custom_conf = fm.confpath('rc.conf') - default_conf = fm.relpath('defaults', 'rc.conf') + default_conf = fm.relpath('config', 'rc.conf') load_default_rc = fm.settings.load_default_rc if load_default_rc: @@ -129,7 +129,7 @@ def load_settings(fm, clean): allow_access_to_confdir(ranger.arg.confdir, False) else: - fm.source(fm.relpath('defaults', 'rc.conf')) + fm.source(fm.relpath('config', 'rc.conf')) def allow_access_to_confdir(confdir, allow): diff --git a/ranger/core/main.py b/ranger/core/main.py index 37cdc586..961bbb8c 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -77,7 +77,7 @@ def main(): if not arg.clean and os.path.isfile(fm.confpath('rifle.conf')): rifleconf = fm.confpath('rifle.conf') else: - rifleconf = fm.relpath('defaults/rifle.conf') + rifleconf = fm.relpath('config/rifle.conf') rifle = Rifle(rifleconf) rifle.reload_config() rifle.execute(targets, number=ranger.arg.mode, flags=ranger.arg.flags) diff --git a/ranger/core/shared.py b/ranger/core/shared.py index dae83b78..26023e43 100644 --- a/ranger/core/shared.py +++ b/ranger/core/shared.py @@ -71,7 +71,7 @@ class SettingsAware(Awareness): settings._setting_sources.append(my_options) del sys.path[0] - from ranger.defaults import options as default_options + from ranger.config import options as default_options settings._setting_sources.append(default_options) assert all(hasattr(default_options, setting) \ for setting in ALLOWED_SETTINGS), \ diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py index b9cdf712..16de09f3 100755 --- a/ranger/ext/rifle.py +++ b/ranger/ext/rifle.py @@ -339,7 +339,7 @@ def main(): conf_path = os.path.expanduser('~/.config/ranger/rifle.conf') if not os.path.isfile(conf_path): conf_path = os.path.normpath(os.path.join(os.path.dirname(__file__), - '../defaults/rifle.conf')) + '../config/rifle.conf')) # Evaluate arguments from optparse import OptionParser |