mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-29 03:06:15 +01:00
4172f12fb0
unicode characters e.g. in submit request comments.
24 lines
518 B
Python
Executable File
24 lines
518 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
# this wrapper exists so it can be put into /usr/bin, but still allows the
|
|
# python module to be called within the source directory during development
|
|
|
|
|
|
import sys, locale
|
|
# this is a hack to make osc work as expected with utf-8 characters, no matter
|
|
# how site.py is set...
|
|
reload(sys)
|
|
sys.setdefaultencoding(locale.getdefaultlocale()[1])
|
|
del sys.setdefaultencoding
|
|
|
|
from osc import commandline
|
|
from osc import babysitter
|
|
|
|
osccli = commandline.Osc()
|
|
|
|
r = babysitter.run(osccli)
|
|
sys.exit(r)
|
|
|
|
|
|
|