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