Updated exception handling to Python 2.6 syntax
[zeroinstall/zeroinstall-limyreth.git] / 0desktop
blob3e08c43af17f12b1b935575b450f3ea0be199742
1 #!/usr/bin/env python
3 import locale
4 from logging import warn
5 try:
6 locale.setlocale(locale.LC_ALL, '')
7 except locale.Error:
8 warn('Error setting locale (eg. Invalid locale)')
10 ## PATH ##
12 from zeroinstall.gtkui import desktop
13 import sys
14 desktop.main(sys.argv[1:])