summaryrefslogtreecommitdiff
path: root/tko/test.cgi
diff options
context:
space:
mode:
authorjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-05-01 22:22:51 +0000
committerjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-05-01 22:22:51 +0000
commit45a7da3ce181b94927c1e8e0c45069ca92c18b1f (patch)
treee72f73350bd012e71f88495ac97e29486cf674dc /tko/test.cgi
parent8c19c0c9329a5efc9c239961cfc9a513b0ee5780 (diff)
Convert tko/*.cgi to use absolute imports, to resolve some
ambiguity with importing "frontend". Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@1482 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/test.cgi')
-rw-r--r--tko/test.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/tko/test.cgi b/tko/test.cgi
index d96d82f5..a1597ae4 100644
--- a/tko/test.cgi
+++ b/tko/test.cgi
@@ -9,9 +9,8 @@ import cgi, cgitb, os, sys, re
sys.stdout.flush()
cgitb.enable()
-tko = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0])))
-sys.path.insert(0, tko)
-import db, display, frontend
+import common
+from autotest_lib.tko import db, display, frontend
db = db.db()