Add back gwt_dir
Signed-off-by: Scott Zawalski <[email protected]>
--- autotest/tko2/client/gwt_dir 2010-04-21 13:55:38.000000000 -0700
+++ autotest/frontend/client/gwt_dir 2010-04-21 13:55:38.000000000 -0700
@@ -1,2 +1,20 @@
-#!/bin/sh
-echo /usr/local/lib/gwt
+#!/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
+
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest