From c006489265e9780d24d0be00d0db2e2f524a79a6 Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Fri, 21 Sep 2012 18:55:33 -0300 Subject: [PATCH] utils.compile_gwt_clients: Use system wide GWT dir if available This is a drop in, more generic replacement of one of the RPM specific patches. Signed-off-by: Lucas Meneghel Rodrigues --- utils/compile_gwt_clients.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/compile_gwt_clients.py b/utils/compile_gwt_clients.py index 160708cc7b..41e27eb96e 100755 --- a/utils/compile_gwt_clients.py +++ b/utils/compile_gwt_clients.py @@ -11,7 +11,9 @@ """ _AUTOTEST_DIR = common.autotest_dir -_DEFAULT_GWT_DIR = '/usr/local/lib/gwt' +_DEFAULT_GWT_DIR = '/usr/share/gwt' +if not os.path.isdir(_DEFAULT_GWT_DIR): + _DEFAULT_GWT_DIR = '/usr/local/lib/gwt' _DEFAULT_APP_DIR = os.path.join(_AUTOTEST_DIR, 'frontend/client') _DEFAULT_INSTALL_DIR = os.path.join(_DEFAULT_APP_DIR, 'www') _TMP_COMPILE_DIR = _DEFAULT_INSTALL_DIR + '.new'