diff options
author | hut <hut@lavabit.com> | 2010-10-10 01:21:55 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-10 01:21:55 +0200 |
commit | 796ca7d3b8fc22992d509ede49b12e60a100e54b (patch) | |
tree | ad0231e2ac1898f63d958d279c470157063792fb /ranger | |
parent | fecebfe81e90d565f4af60c91d3ebc76f29d3c21 (diff) | |
download | ranger-796ca7d3b8fc22992d509ede49b12e60a100e54b.tar.gz |
core.shared: bugfix
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/shared.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/core/shared.py b/ranger/core/shared.py index 175395ec..1d0f96a0 100644 --- a/ranger/core/shared.py +++ b/ranger/core/shared.py @@ -55,8 +55,9 @@ class SettingsAware(Awareness): _colorscheme_name_to_class, priority=1) def postprocess_paths(signal): - import os - signal.value = os.path.expanduser(signal.value) + if isinstance(signal.value, str): + import os + signal.value = os.path.expanduser(signal.value) settings.signal_bind('setopt.preview_script', postprocess_paths, priority=1) |