about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-03 05:30:13 +0200
committerhut <hut@lavabit.com>2011-10-03 05:30:13 +0200
commitc1f2a152d0ed514bb44ee61dd0c2c52da57cd7ee (patch)
treed292a31295afb5dddc3d1dd8127e7f29ebbe3650 /ranger/core/actions.py
parent6cf3818d93a325b53e8792722ce799cabe576dd6 (diff)
downloadranger-c1f2a152d0ed514bb44ee61dd0c2c52da57cd7ee.tar.gz
core.actions: added %rangerdir macro
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index ffcf0dc7..6a8e69e4 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -120,6 +120,8 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 	def _get_macros(self):
 		macros = {}
 
+		macros['rangerdir'] = shell_quote(ranger.RANGERDIR)
+
 		if self.fm.env.cf:
 			macros['f'] = shell_quote(self.fm.env.cf.basename)
 		else: