summary refs log tree commit diff stats
path: root/test/tc_utfwidth.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_utfwidth.py')
-rw-r--r--test/tc_utfwidth.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/tc_utfwidth.py b/test/tc_utfwidth.py
index 2aa5fa6d..0288c17b 100644
--- a/test/tc_utfwidth.py
+++ b/test/tc_utfwidth.py
@@ -12,7 +12,13 @@
 # GNU General Public License for more details.
 #
 # 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]
+sys.path[1:1] = ['..']
 
 from unittest import TestCase, main
 from ranger.ext.utfwidth import *