summaryrefslogtreecommitdiff
path: root/tko/machine_aggr.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/machine_aggr.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/machine_aggr.cgi')
-rw-r--r--tko/machine_aggr.cgi9
1 files changed, 3 insertions, 6 deletions
diff --git a/tko/machine_aggr.cgi b/tko/machine_aggr.cgi
index 5c23644c..ea8009e7 100644
--- a/tko/machine_aggr.cgi
+++ b/tko/machine_aggr.cgi
@@ -6,12 +6,9 @@ import cgi, cgitb, os, sys, re, subprocess
cgitb.enable()
Popen = subprocess.Popen
-tko = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0])))
-sys.path.insert(0, tko)
-import db, display, frontend, plotgraph
-client_bin = os.path.abspath(os.path.join(tko, '../client/bin'))
-sys.path.insert(0, client_bin)
-import kernel_versions
+import common
+from autotest_lib.tko import db, display, frontend, plotgraph
+from autotest_lib.client.bin import kernel_versions
released_kernel = re.compile('2\.\d\.\d+(-smp-)[0-9]{3}\.[0-9]$')
rc_kernel = re.compile('2\.\d\.\d+(-smp-)[0-9]{3}\.[0-9]_rc[0-9]$')