diff options
author | hut <hut@lavabit.com> | 2011-10-03 04:40:45 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-03 04:40:45 +0200 |
commit | 0731aa8063b3ef72d64aaf3a6267c82a937b0d37 (patch) | |
tree | e3a0e27054dbae0d15f2c91f4dbd725346d1345c | |
parent | fc5d86401c73b42eb45e5ae62a7fc16dc57e60e9 (diff) | |
download | ranger-0731aa8063b3ef72d64aaf3a6267c82a937b0d37.tar.gz |
core.actions: expanduser in source_commandlist()
-rw-r--r-- | ranger/core/actions.py | 1 |
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(): |