diff options
author | hut <hut@lavabit.com> | 2010-10-05 21:30:15 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-05 21:30:15 +0200 |
commit | 258a2668e6cdd34351979b8da17c6e66a738996e (patch) | |
tree | cd3406c2198daced1f12cb11c4091fa1ed99dd4c /test/bm_loader.py | |
parent | dc7ee19fc15eee33c948d0ccd6c06df9682c0bf3 (diff) | |
parent | d3bcb234bf5776da7d9b66e73107e906342eeb7d (diff) | |
download | ranger-258a2668e6cdd34351979b8da17c6e66a738996e.tar.gz |
Merge branch 'stable' into preview
Conflicts: ranger/shared/settings.py
Diffstat (limited to 'test/bm_loader.py')
-rw-r--r-- | test/bm_loader.py | 6 |
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 |