Make k5test.py work for builds in the source dir
authorGreg Hudson <ghudson@mit.edu>
Thu, 13 May 2010 16:46:50 +0000 (16:46 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 13 May 2010 16:46:50 +0000 (16:46 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24015 dc483132-0cff-0310-8789-dd5450dbe970

src/util/k5test.py

index 9ac1fc84582ff67fd812bb9e2aba155fbbaa0541..880c6bd4f2656b241f7654118e702de63a14d8f2 100644 (file)
@@ -387,7 +387,7 @@ def _find_buildtop():
 
 
 def _find_srctop():
-    scriptdir = os.path.dirname(sys.argv[0])
+    scriptdir = os.path.abspath(os.path.dirname(sys.argv[0]))
     if not scriptdir:
         scriptdir = os.getcwd()
     root = _find_root(scriptdir)