def find_gwt_dir():
 site_gwt = os.path.join(_AUTOTEST_DIR, 'site-packages', 'gwt')
 if os.path.isdir(site_gwt):
  return site_gwt
 if (not os.path.isdir(_DEFAULT_GWT_DIR)):
  logging.error('Unable to find GWT. You can use utils/build_externals.py to install it.')
  sys.exit(1)
 return _DEFAULT_GWT_DIR

def find_gwt_dir ( ) : site_gwt = os . path . join ( _AUTOTEST_DIR , 'site-packages' , 'gwt' ) if os . path . isdir ( site_gwt ) : return site_gwt if ( not os . path . isdir ( _DEFAULT_GWT_DIR ) ) : logging . error ( 'Unable to find GWT. You can use utils/build_externals.py to install it.' ) sys . exit ( 1 ) return _DEFAULT_GWT_DIR
see if gwt is installed in site-packages or in the system .