blob: 2cf357685cbe9ee4e574ffd945a0a70ad3469122 [file] [log] [blame]
jamesren6b8e8062010-04-21 21:07:12 +00001#!/usr/bin/python
2#
3# Find the GWT installation and print its location to stdout.
4
5import os, sys
6
7DEFAULT_GWT = '/usr/local/lib/gwt'
8
9site_gwt = os.path.abspath(os.path.join(
10 os.path.dirname(__file__), '..', '..', 'site-packages', 'gwt'))
11
12if os.path.isdir(site_gwt):
13 print site_gwt
14 sys.exit(0)
15
16if not os.path.isdir(DEFAULT_GWT):
17 sys.stderr.write('(%s): GWT not installed?\n' % __file__)
18
19print DEFAULT_GWT
20