diff options
Diffstat (limited to 'test/tc_direction.py')
-rw-r--r-- | test/tc_direction.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tc_direction.py b/test/tc_direction.py index f45b4b36..16c26dab 100644 --- a/test/tc_direction.py +++ b/test/tc_direction.py @@ -13,7 +13,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -if __name__ == '__main__': from __init__ import init; init() +import os.path +import sys +rangerpath = os.path.join(os.path.dirname(__file__), '..') +if sys.path[1] != rangerpath: + sys.path[1:1] = [rangerpath] import unittest from ranger.ext.direction import Direction |