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
9 from osc import commandline, babysitter
11 # this is a hack to make osc work as expected with utf-8 characters,
12 # no matter how site.py is set...
14 loc = locale.getdefaultlocale()[1]
16 loc = sys.getdefaultencoding()
17 sys.setdefaultencoding(loc)
18 del sys.setdefaultencoding
20 osccli = commandline.Osc()
22 r = babysitter.run(osccli)