summary refs log tree commit diff stats
path: root/test/bm_human_readable.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/bm_human_readable.py')
-rw-r--r--test/bm_human_readable.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/bm_human_readable.py b/test/bm_human_readable.py
index 83f2a057..ef400774 100644
--- a/test/bm_human_readable.py
+++ b/test/bm_human_readable.py
@@ -13,6 +13,12 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+import os.path
+import sys
+rangerpath = os.path.join(os.path.dirname(__file__), '..')
+if sys.path[1] != rangerpath:
+	sys.path[1:1] = [rangerpath]
+
 from ranger.ext.human_readable import *
 
 # The version before 2010/06/24: