summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-02-11 11:49:26 +0100
committerMichał Górny <mgorny@gentoo.org>2018-02-11 11:49:26 +0100
commit215a4c7a1a1782066d362ae5fa1f37ee76c77573 (patch)
tree4daa1c56c75f3b9abab51e01bdd7b3b5bcafe8ad /bin
parent8d50659c8e86a59e9d9965a495030859c9a588de (diff)
downloadgemato-215a4c7a1a1782066d362ae5fa1f37ee76c77573.tar.gz
bin: Reuse setuptools_main()
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gemato8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/gemato b/bin/gemato
index 93eda61..bdb8604 100755
--- a/bin/gemato
+++ b/bin/gemato
@@ -1,17 +1,15 @@
#!/usr/bin/env python
# vim:fileencoding=utf-8
-# (c) 2017 Michał Górny
+# (c) 2017-2018 Michał Górny
# Licensed under the terms of 2-clause BSD license
-import logging
import os.path
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
-from gemato.cli import main
+from gemato.cli import setuptools_main
if __name__ == '__main__':
- logging.getLogger().setLevel(logging.INFO)
- sys.exit(main(sys.argv))
+ setuptools_main()