summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-03 04:40:45 +0200
committerhut <hut@lavabit.com>2011-10-03 04:40:45 +0200
commit0731aa8063b3ef72d64aaf3a6267c82a937b0d37 (patch)
treee3a0e27054dbae0d15f2c91f4dbd725346d1345c
parentfc5d86401c73b42eb45e5ae62a7fc16dc57e60e9 (diff)
downloadranger-0731aa8063b3ef72d64aaf3a6267c82a937b0d37.tar.gz
core.actions: expanduser in source_commandlist()
-rw-r--r--ranger/core/actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index f4aec81a..dff3e9b9 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -177,6 +177,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		return macros
 
 	def source_cmdlist(self, filename, narg=None):
+		filename = os.path.expanduser(filename)
 		for line in open(filename, 'r'):
 			line = line.rstrip("\r\n")
 			if line.startswith("#") or not line.strip():