summary refs log tree commit diff stats
path: root/test/tc_directory.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-08-29 19:16:57 +0200
committerhut <hut@lavabit.com>2010-08-29 19:16:57 +0200
commitec823be00aa7175ebcb836a240a20f6389159c2e (patch)
tree24fe7386e630acf7ccf7903c09f252b434aee18a /test/tc_directory.py
parentfd29d7e6bb22d6176717ac5dc9e3c8f88009732b (diff)
downloadranger-ec823be00aa7175ebcb836a240a20f6389159c2e.tar.gz
Removed symlink in test/
Diffstat (limited to 'test/tc_directory.py')
-rw-r--r--test/tc_directory.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tc_directory.py b/test/tc_directory.py
index a702c4db..754253b3 100644
--- a/test/tc_directory.py
+++ b/test/tc_directory.py
@@ -13,7 +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 os.path import realpath, join, dirname
 
 from ranger import fsobject