summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentfc5d86401c73b42eb45e5ae62a7fc16dc57e60e9 (diff)
downloadranger-0731aa8063b3ef72d64aaf3a6267c82a937b0d37.tar.gz
core.actions: expanduser in source_commandlist()
Diffstat (limited to 'ranger')
-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():
n107' href='#n107'>107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167