summaryrefslogtreecommitdiff
path: root/common.py
diff options
context:
space:
mode:
authorjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-05-21 19:51:28 +0000
committerjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-05-21 19:51:28 +0000
commitcc96e6727d0e2b9f64601720082ac41eaae8331e (patch)
tree7015b48a8c75205551bcfd4214184798845974bf /common.py
parentaa30f51b7d9ebc1f3a091db084a784771e3204b9 (diff)
Fix up an issue with the root common.py; it doesn't abspathify
the dirname it uses. The __file__ attribute probably already is abspathified anyway, but this makes sure, and makes it more consistent with the other common.py files (where it does matter). Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@1541 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'common.py')
-rw-r--r--common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.py b/common.py
index 7654dabf..48676a71 100644
--- a/common.py
+++ b/common.py
@@ -1,6 +1,6 @@
import os, sys
dirname = os.path.dirname(sys.modules[__name__].__file__)
-autotest_dir = dirname
+autotest_dir = os.path.abspath(dirname)
client_dir = os.path.join(autotest_dir, "client")
sys.path.insert(0, client_dir)
import setup_modules