diff options
Diffstat (limited to 'ranger/core/shared.py')
-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) |