- core.request_interactive_review: don't execute review code path if no reviews are...
[opensuse:osc.git] / osc-wrapper.py
1 #!/usr/bin/env python
2
3 # this wrapper exists so it can be put into /usr/bin, but still allows the
4 # python module to be called within the source directory during development
5
6 import locale
7 import sys
8
9 from osc import commandline, babysitter
10
11 # this is a hack to make osc work as expected with utf-8 characters,
12 # no matter how site.py is set...
13 reload(sys)
14 loc = locale.getdefaultlocale()[1]
15 if not loc:
16     loc = sys.getdefaultencoding()
17 sys.setdefaultencoding(loc)
18 del sys.setdefaultencoding
19
20 osccli = commandline.Osc()
21
22 r = babysitter.run(osccli)
23 sys.exit(r)