summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-10 01:21:55 +0200
committerhut <hut@lavabit.com>2010-10-10 01:21:55 +0200
commit796ca7d3b8fc22992d509ede49b12e60a100e54b (patch)
treead0231e2ac1898f63d958d279c470157063792fb
parentfecebfe81e90d565f4af60c91d3ebc76f29d3c21 (diff)
downloadranger-796ca7d3b8fc22992d509ede49b12e60a100e54b.tar.gz
core.shared: bugfix
-rw-r--r--ranger/core/shared.py5
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)