aboutsummaryrefslogtreecommitdiff
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
commit35c52e3d4b72862fd67e6610017108c27b05a897 (patch)
tree7015b48a8c75205551bcfd4214184798845974bf
parent691788731c2e7aa08cfa92deb6617f882f7f840f (diff)
downloadautotest-35c52e3d4b72862fd67e6610017108c27b05a897.tar.gz
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: http://test.kernel.org/svn/autotest/trunk@1541 592f7852-d20e-0410-864c-8624ca9c26a4
-rw-r--r--common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.py b/common.py
index 7654dabf4c..48676a714c 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