Select first <summary> or <description> entry if _best_language_match() can't find...
[zeroinstall.git] / 0install
blobeac74e78bf4f3213e96f733d6710f8ab85d16a28
1 #!/usr/bin/env python
2 import sys
3 if sys.version_info[0] > 2:
4 import os
5 os.execvp("python2", ["python2"] + sys.argv)
7 import locale
8 from logging import warn
9 try:
10 locale.setlocale(locale.LC_ALL, '')
11 except locale.Error:
12 warn('Error setting locale (eg. Invalid locale)')
14 ## PATH ##
16 from zeroinstall.cmd import main
17 import sys
18 main(sys.argv[1:])