1 Star 0 Fork 0

安家/curator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
run_curator.py 959 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aaron Mildenstein 提交于 2018-05-10 11:14 . Fix _check_max_size call
#!/usr/bin/env python
"""
Wrapper for running curator from source.
When used with Python 3 (and the DEB and RPM packages of Curator are compiled
and bundled with Python 3), Curator requires the locale to be unicode. Any of
the above unicode definitions are acceptable.
To set the locale to be unicode, try:
$ export LC_ALL=en_US.utf8
$ curator [ARGS]
Alternately, you should be able to specify the locale on the command-line:
$ LC_ALL=en_US.utf8 curator [ARGS]
Be sure to substitute your unicode variant for en_US.utf8
"""
from curator.cli import cli
if __name__ == '__main__':
try:
# This is because click uses decorators, and pylint doesn't catch that
# pylint: disable=no-value-for-parameter
cli()
except RuntimeError as e:
import sys
print('{0}'.format(e))
sys.exit(1)
except Exception as e:
if 'ASCII' in str(e):
print('{0}'.format(e))
print(__doc__)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/anjia/curator.git
git@gitee.com:anjia/curator.git
anjia
curator
curator
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385