summary refs log tree commit diff stats
path: root/test/bm_loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/bm_loader.py')
-rw-r--r--test/bm_loader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/bm_loader.py b/test/bm_loader.py
index 968640a5..552954a7 100644
--- a/test/bm_loader.py
+++ b/test/bm_loader.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.core.loader import Loader
 from ranger.fsobject import Directory, File
 from ranger.ext.openstruct import OpenStruct
#n119'>119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138