Add back gwt_dir

Signed-off-by: Scott Zawalski <scottz@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4440 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/client/gwt_dir b/frontend/client/gwt_dir
new file mode 100644
index 0000000..2cf3576
--- /dev/null
+++ b/frontend/client/gwt_dir
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+#
+# Find the GWT installation and print its location to stdout.
+
+import os, sys
+
+DEFAULT_GWT = '/usr/local/lib/gwt'
+
+site_gwt = os.path.abspath(os.path.join(
+        os.path.dirname(__file__), '..', '..', 'site-packages', 'gwt'))
+
+if os.path.isdir(site_gwt):
+    print site_gwt
+    sys.exit(0)
+
+if not os.path.isdir(DEFAULT_GWT):
+    sys.stderr.write('(%s): GWT not installed?\n' % __file__)
+
+print DEFAULT_GWT
+