Don't add the bundled Python distribution as a candidate for the Python feed
[zeroinstall/solver.git] / 0solve
blob0af00e4dd2a813ce81aa670243fadd5a4395420a
1 #!/usr/bin/env python
2 import sys, os
4 # Add ZIP library to search path in case of direct launch without py2exe
5 libraryZip = os.path.join(os.path.dirname(sys.argv[0]), 'library.zip')
6 if os.path.exists(libraryZip):
7 sys.path.append(libraryZip)
9 import locale, logging
11 logging.basicConfig(format="%(levelname)s: %(message)s")
13 try:
14 locale.setlocale(locale.LC_ALL, '')
15 except locale.Error:
16 logging.warn('Error setting locale (eg. Invalid locale)')
18 from zeroinstall.injector import cli_solve
19 cli_solve.main(sys.argv[1:])