[conduit: 52/138] Don't force ./soup to be run from soup directory



commit e8b0900b5e10400b0c324ba638e7e124533cd968
Author: John Carr <john carr unrouted co uk>
Date:   Thu Apr 30 03:15:41 2009 -0700

    Don't force ./soup to be run from soup directory
---
 test/soup/soup |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/test/soup/soup b/test/soup/soup
index c0a96db..effe5c9 100755
--- a/test/soup/soup
+++ b/test/soup/soup
@@ -1,7 +1,8 @@
 #! /usr/bin/env python
 
 import sys, os
-sys.path.insert(0, '..')
+testsdir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
+sys.path.insert(0, testsdir)
 
 os.environ['TEST_DIRECTORY'] = 'tmp'
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]