summary refs log tree commit diff stats
path: root/test/tc_keyapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/tc_keyapi.py')
-rw-r--r--test/tc_keyapi.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tc_keyapi.py b/test/tc_keyapi.py
index 2f522173..79d89fa5 100644
--- a/test/tc_keyapi.py
+++ b/test/tc_keyapi.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]
 
 from unittest import TestCase, main
 
f='#n97'>97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
126'>126
127
128
129
130