From 0731aa8063b3ef72d64aaf3a6267c82a937b0d37 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 3 Oct 2011 04:40:45 +0200 Subject: core.actions: expanduser in source_commandlist() --- ranger/core/actions.py | 1 + 1 file changed, 1 insertion(+) 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(): -- cgit 1.4.1-2-gfad0