summary refs log tree commit diff stats
path: root/ranger/ext/relpath.py
blob: 2d633e7a274f195a763f3d961e5e9ea6b11303f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import os
import ranger

def relpath(*paths):
	"""returns the path relative to rangers library directory"""
	return os.path.join(ranger.RANGERDIR, *paths)

def relpath_conf(*paths):
	"""returns the path relative to rangers configuration directory"""
	return os.path.join(ranger.CONFDIR, *paths)