osc ls -u -- same logic here as mls suggests for osc cat.
[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 sys, locale
7 # this is a hack to make osc work as expected with utf-8 characters,
8 # no matter how site.py is set...
9 reload(sys)
10 loc = locale.getdefaultlocale()[1]
11 if not loc:
12     loc = sys.getdefaultencoding()
13 sys.setdefaultencoding(loc)
14 del sys.setdefaultencoding
15
16 from osc import commandline
17 from osc import babysitter
18
19 osccli = commandline.Osc()
20
21 r = babysitter.run(osccli)
22 sys.exit(r)